Data Types

March 14, 2026 · View on GitHub

Supported PostgreSQL data types and how they map to DuckDB in the target DuckLake table.

Supported Types

PostgreSQLDuckDBNotes
integer / serialINTEGER
bigint / bigserialBIGINT
smallint / smallserialSMALLINT
realREALPG float4
double precisionDOUBLEPG float8
booleanBOOLEAN
textTEXT
varchar(n)VARCHAR(n)
char(n)VARCHAR(n)
dateDATE
timestampTIMESTAMP
timestamptzTIMESTAMPTZ
timeTIME
numeric(p,s)DECIMAL(p,s)
uuidUUID
intervalINTERVAL
jsonbJSON
jsonJSON
integer[], text[], etc.INTEGER[], VARCHAR[], etc.Array types

Unsupported Types

  • bytea — binary data cannot be transported via the text-based CDC pipeline
  • Composite typesCREATE TYPE ... AS (...) are not mapped
  • Range typesint4range, tsrange, etc. are not mapped
  • Enum typesCREATE TYPE ... AS ENUM values are stored as TEXT

Schema Changes

ALTER TABLE (add/drop/rename columns, change types) is not propagated automatically. After modifying a source table's schema, rebuild the target with:

SELECT duckpipe.resync_table('public.my_table');