<@U04S8PLJWMT> Using the Postgres source connector...
# ask-ai
w
@kapa.ai Using the Postgres source connector, how do I sync views? I found this note:
• Data must be in tables and not views. If you require data synchronization from a view, you would need to create a new connection with
Standard
as
Replication Method
.
Can you explain what this means, and where I can configure it?
k
To sync data from a Postgres view using the Airbyte Postgres source connector, you must use the Standard replication method. This is because Change Data Capture (CDC) and other incremental sync methods are only supported for tables, not views. The documentation states: > Data must be in tables and not views. If you require data synchronization from a view, you would need to create a new connection with
Standard
as
Replication Method
 [Postgres Troubleshooting - Connector Limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#connector-limitations). What this means: - You cannot use CDC or xmin-based incremental sync for views. - To sync a view, you must set up a new Airbyte source connection and explicitly select the Standard replication method for that connection. Where to configure it: When you create a new Postgres source in the Airbyte UI (or via the API), you will see a field for the replication method. Here, select Standard. This can be done during the source setup process: 1. Go to the Airbyte UI and add a new Postgres source. 2. Fill in your connection details (host, port, database, user, password, etc.). 3. In the replication method section, choose Standard. 4. Complete the setup and select your view(s) as the stream(s) to sync. This approach allows you to sync data from views, but only using the full refresh or standard incremental sync (not CDC or xmin). If you need to automate this, you can also specify the replication method as Standard in the API payload when creating the source [Create and Monitor a Data Pipeline Using the Airbyte API](https://airbyte.com/tutorials/create-and-monitor-a-data-pipeline-using-the-airbyte-api). Note: Incremental sync for views is not supported, and attempts to use CDC or xmin with views will not work. If you need incremental sync, you must use tables, not views [Postgres Troubleshooting - Connector Limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#connector-limitations).