PostgreSQL connector reference
The PostgreSQL connector for Lakeflow Connect is in Public Preview. Reach out to your Databricks account team to enroll in the Public Preview.
This page contains reference material for the PostgreSQL connector in Databricks Lakeflow Connect.
Automatic data transformations
Databricks automatically transforms the following PostgreSQL data types to Delta-compatible data types:
PostgreSQL type | Delta type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Important notes about date and time types
DATEcolumns are ingested as the DeltaDATEtype.TIMESTAMPandTIMESTAMP WITH TIME ZONEcolumns are ingested as the DeltaTIMESTAMPtype. ForTIMESTAMP WITH TIME ZONE, the timezone information is preserved during ingestion.TIME,TIME WITH TIME ZONE, andINTERVALcolumns are ingested as strings in their original format. You can use Databricks SQL functions to parse these strings into the appropriate time representations if needed.
User-defined and third-party data types
User-defined types and data types from third-party PostgreSQL extensions are ingested as strings. If you need to transform these types, you can use Databricks SQL functions to parse the string representations in downstream processing.
Composite types
PostgreSQL composite types (also known as row types) are ingested as strings. The string representation follows PostgreSQL's composite type format: (value1,value2,value3).