Wasim Bagwan
10/07/2025, 6:15 AMkapa.ai
10/07/2025, 6:15 AMairbyte_slot) using a logical decoding plugin like pgoutput. - Create a publication that includes both tables you want to replicate. - Set REPLICA IDENTITY to DEFAULT for both tables (which is required for CDC to work properly and is the default if your tables have primary keys). - In Airbyte, configure the source to use the same replication slot and publication for both tables. Example: sql ALTER TABLE table1 REPLICA IDENTITY DEFAULT; ALTER TABLE table2 REPLICA IDENTITY DEFAULT; CREATE PUBLICATION airbyte_publication FOR TABLE table1, table2; SELECT pg_create_logical_replication_slot('airbyte_slot', 'pgoutput'); Then, in Airbyte, set the replication mode to Logical Replication (CDC), and enter the replication slot and publication you created. Airbyte will then capture inserts and deletes (as well as updates) for both tables using the same slot and publication. This is the recommended and supported approach for your use case, and your current Postgres settings (max_wal_size, max_wal_senders, logical decoding enabled) are appropriate for supporting logical replication with multiple tables in a single slot and publication. Important Notes: - The replication slot should be dedicated to Airbyte and not shared with other consumers. - All tables you want to replicate must be included in the publication; otherwise, changes to excluded tables will not be captured. - For CDC to work, each table must have a primary key and REPLICA IDENTITY DEFAULT (or FULL if needed for special cases) set. Tables without primary keys can only be replicated using Full Refresh, not CDC. - Frequent syncs are recommended to avoid WAL buildup, as the slot retains WAL segments until they are consumed by Airbyte. References: - [Cloud SQL for PostgreSQL CDC setup](https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#step-5-create-publication-and-replication-identities-for-each-postgres-table) - [CDC requirements and limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#cdc-requirements) - [Airbyte CDC tutorial](https://airbyte.com/tutorials/postgresql-change-data-capture-elt)Wasim Bagwan
10/07/2025, 6:57 AMkapa.ai
10/07/2025, 6:57 AMkapa.ai
10/07/2025, 6:57 AM_airbyte_tmp_) are involved, you should follow these steps: 1. Ensure No Active Locks: The error message indicates the table is currently locked by another process (Process ID: 1257591). You must wait until the lock is released or terminate the blocking process if appropriate and safe. You can identify and terminate the blocking process using PostgreSQL administrative commands, but this should be done with caution. 2. Drop Intermediate (Temporary) Tables First: If there are intermediate tables with prefixes such as _airbyte_tmp_, you can safely drop these tables after the sync is complete. There is no built-in Airbyte feature to remove these prefixes automatically; manual deletion is required. Example SQL: sql DROP TABLE IF EXISTS <schema>._airbyte_tmp_<table_name>; [Forum reference](https://discuss.airbyte.io/t/2867) 3. Drop the Raw Table: Once you are sure no process is using the raw table and any related temporary tables are dropped, you can drop the raw table itself. Example SQL: sql DROP TABLE IF EXISTS <schema>._airbyte_raw_<table_name>; 4. If There Are Dependent Objects: If you have created dependent objects (like views) on the Airbyte tables, you may need to use DROP ... CASCADE. Be aware that this will also drop all dependent objects, so ensure you have a way to recreate them if needed. [See: Creating dependent objects](https://docs.airbyte.com/integrations/destinations/postgres#creating-dependent-objects) Summary Sequence: 1. Wait for or terminate blocking processes. 2. Drop intermediate tables (e.g., _airbyte_tmp_...). 3. Drop the raw table (e.g., _airbyte_raw_...). 4. Use CASCADE if there are dependencies, but proceed with caution. If the table remains locked, you must resolve the lock before proceeding. The knowledge sources do not provide a built-in Airbyte feature for automated cleanup; manual intervention is required as described above.Wasim Bagwan
10/07/2025, 10:51 AMkapa.ai
10/07/2025, 10:51 AMkapa.ai
10/07/2025, 10:51 AMkapa.ai
10/07/2025, 10:52 AMkapa.ai
10/07/2025, 10:52 AMCDC events queue stats: size=0, cap=10000, puts=7, polls=0 This log line indicates that the queue capacity is set to 10,000 events during CDC operations. However, the knowledge sources do not explicitly state whether this value is configurable via the "queue (Advanced)" setting in the Airbyte UI or if it is hardcoded. There is no documentation in the provided sources detailing how to change this value or what the "queue (Advanced)" setting specifically controls in the context of the Postgres CDC connector. If you require confirmation or need to adjust this parameter, it is recommended to consult the Airbyte connector configuration UI or the official documentation for the most current and detailed information. The knowledge sources do not provide further details on this setting at this time [source](https://github.com/airbytehq/airbyte/issues/49803).Wasim Bagwan
10/07/2025, 10:57 AMkapa.ai
10/07/2025, 10:57 AMkapa.ai
10/07/2025, 10:57 AMWasim Bagwan
10/07/2025, 12:38 PMkapa.ai
10/07/2025, 12:38 PMkapa.ai
10/07/2025, 12:39 PM