PostgreSQL to SQL Server mapping
AutoSync maps PostgreSQL object types to the following SQL Server column types:
PostgreSQL object type | SQL Server column type |
---|---|
serial |
smallint |
bigserial |
int |
int2 |
smallint |
int4 |
int |
int8 |
bigint |
numeric |
decimal |
numeric_without_prec_scale |
varchar |
float4 |
real |
float8 |
float |
money |
float |
bytea |
varbinary |
varchar |
varchar |
bpchar |
varchar |
text |
varchar |
cidr |
varchar |
inet |
varchar |
macaddr |
varchar |
macaddr8 |
varchar |
bit |
varchar |
uuid |
varchar |
xml |
varchar |
json |
text |
jsonb |
text |
tsvector |
varchar |
tsquery |
varchar |
timestamp |
datetime2 |
timestamptz |
datetime2 |
date |
date |
time |
time |
timetz |
time |
interval |
varchar |
point |
varchar |
line |
varchar |
lseg |
varchar |
box |
varchar |
path |
varchar |
polygon |
varchar |
circle |
varchar |
geometry |
text |
array |
varchar |
composite |
varchar |
range |
varchar |
oid |
bigint |
pg_lsn |
varchar |
bool |
bit |
char |
char |
name |
varchar |
sl_timestamp |
datetimeoffset |