---
title: PostgreSQL ingestion connector
description: Learn about the PostgreSQL ingestion workflow, including factors that affect your setup and step-by-step guidance for different user personas.
canonical_url: https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql
---

# PostgreSQL ingestion connector

> [!NOTE]
> **Preview**
>
> The PostgreSQL connector is in Public Preview. Contact your Databricks account team to request access.

This page helps you understand the PostgreSQL ingestion workflow, including the factors that determine your setup approach and the steps involved for different user personas.

> [!IMPORTANT]
>
> Before you create a PostgreSQL ingestion pipeline, you must configure the source database directly in PostgreSQL: enable logical replication, create a replication user, and create publications and replication slots. Complete these tasks first. See [Configure PostgreSQL for ingestion into Databricks](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql-source-setup.md).

## Feature availability

| Feature                                             | Availability                                                                                                                                                                                                                                    |
| --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| UI-based pipeline authoring                         | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| API-based pipeline authoring                        | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| Declarative Automation Bundles                      | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| Incremental ingestion                               | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| Unity Catalog governance                            | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| Orchestration using Lakeflow Jobs                   | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| SCD type 2                                          | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| API-based column selection and deselection          | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported. See [Column selection for PostgreSQL](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql-column-selection.md). |
| API-based row filtering                             | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| Automated schema evolution: New and deleted columns | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported                                                                                                                                       |
| Automated schema evolution: Data type changes       | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported                                                                                                                                               |
| Automated schema evolution: Column renames          | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported<br />Treated as a new column (new name) and deleted column (old name).                                                                |
| Automated schema evolution: New tables              | N/A                                                                                                                                                                                                                                             |
| Maximum number of tables per pipeline               | 250                                                                                                                                                                                                                                             |

## Authentication methods

| Authentication method                           | Availability                                                                                              |
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| OAuth U2M                                       | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| OAuth M2M                                       | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| OAuth (manual refresh token)                    | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| Basic authentication (username/password)        | ![Green check icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/check-green.svg) Supported |
| Basic authentication (API key)                  | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |
| Basic authentication (service account JSON key) | ![Red X icon](https://docs.databricks.com/gcp/en/images/lakeflow-connect/x-red.svg) Not supported         |

## What to know before you start

| Topic                                                                                                                       | Why it matters                                                                                                                                                                                                                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Databricks user persona](https://docs.databricks.com/gcp/en/connect/managed-ingestion.md)                                  | The workflow depends on your Databricks user persona:<br /><ul><li>Single-user: An admin user configures the source database and creates a Unity Catalog connection, an ingestion gateway, and an ingestion pipeline.</li><li>Multi-user: An admin user configures the source database and creates a connection for non-admin users to create gateway-pipeline pairs with.</li></ul> |
| [Deployment environment](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql-source-setup.md)          | The source database configuration depends on the PostgreSQL deployment environment.                                                                                                                                                                                                                                                                                                  |
| [Authentication method](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql.md#authentication-methods) | The steps to create a connection depend on the authentication method you choose.                                                                                                                                                                                                                                                                                                     |
| [Interface](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/faq.md)                                           | The steps to create a connection, a gateway, and a pipeline depend on the interface.                                                                                                                                                                                                                                                                                                 |
| [Ingestion frequency](https://docs.databricks.com/gcp/en/ldp/concepts/pipeline-mode.md)                                     | The pipeline schedule depends on your latency and cost requirements.                                                                                                                                                                                                                                                                                                                 |
| [Common patterns](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/common-patterns.md)                         | Depending on your ingestion needs, the pipeline might use configurations like history tracking, column selection, and row filtering. Supported configurations vary by connector. See [Feature availability](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql.md#feature-availability).                                                                       |

## Start ingesting from PostgreSQL

The following table provides an overview of the end-to-end PostgreSQL ingestion workflow, based on user type:

| User      | Steps                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Admin     | <ul><li>[Configure PostgreSQL for ingestion into Databricks](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql-source-setup.md).</li><li>Either:<br /><ul><li>Use Catalog Explorer to create a connection so that non-admins can create gateway-pipeline pairs. See [Create a PostgreSQL connection](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql-connection.md).</li><li>Use the data ingestion UI to create a connection, a gateway, and a pipeline. See [Ingest data from PostgreSQL](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql-pipeline.md).</li></ul></li></ul> |
| Non-admin | Use any supported interface to create a gateway and a pipeline. See [Ingest data from PostgreSQL](https://docs.databricks.com/gcp/en/ingestion/lakeflow-connect/postgresql-pipeline.md).                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
