Salesforce

PostgreSQL Data Types (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

PostgreSQL Data Types

The following table shows Magic xpa equivalents for PostgreSQL database data types.

PostgreSQL Data Type

Attribute

Magic xpa Storage Type

Storage Size

Picture

CHAR(n)

Unicode

ZUnicode

(n*2)+2

n

VARCHAR2(n)

Unicode

ZUnicode

(n*2)+2

n

BIGINT

Numeric

String Number

20

19

INTEGER

Numeric

Signed Integer

4

10

SMALLINT

Numeric

Signed Integer

2

5

DOUBLE PRECISION

Numeric

Float

8

10.3

REAL

Numeric

Float

8

10.3

NUMERIC(n, p)

Numeric

Float if n <= 15, String Number if n >=16

8 if Float, n + 1 if String

n-p, p

BOOLEAN

Logical

Integer logical

1

5

DATE

Date

String Date

8

##/##/####

TIME

Time

String Time

6

HH:MM:SS

TEXT

Blob

Unicode

BYTEA

Blob

Binary

Since version: 4.6

Reference
Attachment 
Attachment