Hi <@U04S8PLJWMT> I have issue with postgres conne...
# replication-troubleshooting
a
Hi @kapa.ai I have issue with postgres connector source want to postgres connector source move data to postgres connector dest but it's keep saying 0 bytes|no records loaded|30m 56s which is wrong because it's the fist sync postgres connector source 3.7.0 can you help me why ?
k
Thanks for the details. A first sync showing “0 bytes | 0 records” with Postgres→Postgres usually points to a configuration/version mismatch or a CDC-related state/LSN issue. Based on similar reports in our knowledge sources, here are the most likely causes and what to check: 1) If you’re using CDC (logical replication): - Known PgJDBC regression in recent Postgres source versions: Starting with source-postgres 3.6.19, the bundled PgJDBC (>= 42.7.0) can advance the confirmed_flush_lsn incorrectly, which makes Airbyte think there’s nothing to read or causes “saved offset is before confirmed lsn” behavior. Several users report empty/inconsistent CDC syncs with 3.6.22–3.6.30 because of this. Workarounds: - Downgrade source-postgres to 3.6.18 temporarily. [[CDC PgJDBC](https://github.com/airbytehq/airbyte/issues/49802); [flush LSN issue](https://github.com/airbytehq/airbyte/issues/55846)] - If staying on newer versions, set Invalid CDC position behavior (Advanced) to Re-sync data to allow a fresh snapshot if the saved offset is considered invalid; this unblocks but may be costly. [[CDC PgJDBC](https://github.com/airbytehq/airbyte/issues/49802)] - Ensure WAL retention is sufficient and syncs start quickly so WAL isn’t recycled before Airbyte reads it. The Postgres docs note full refresh can be triggered if WALs are removed; increase wal_keep_size and/or run more frequently. [[PG troubleshooting](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs)] - Initial Waiting Time for finding resume position: Some users fixed “successful but 0 records” by increasing Initial Waiting Time in Seconds (Advanced) so the connector has enough time to find the WAL resume point, especially on larger or busier systems. One report succeeded with 2400 seconds. [[CDC 0 records](https://github.com/airbytehq/airbyte/issues/50435)] 2) If you’re not using CDC (standard/full refresh): - “Every other sync 0 bytes” and empty full refreshes have been observed after certain upgrades when CTID/filenode state logic thought nothing changed or mis-tracked state. If you’re doing Full refresh | Overwrite and still getting 0 bytes on first run, try: - Reset the connection and re-run a full refresh. - Verify you selected the correct schemas/tables (and that the source user can read them). - If you recently upgraded connectors, re-validate both connectors’ settings. A malformed config (e.g., destination password typed as object vs string) can cause silent failures at the destination stage. [[PG→PG fail due to config](https://discuss.airbyte.io/t/2348); [every-other full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] 3) Running against a hot-standby replica: - Long-running queries can be terminated by recovery conflict and lead to zero data pulled. If you’re reading from a replica, enable hot_standby_feedback=true or run when no conflicting updates occur. [[PG standby conflicts](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#sync-data-from-postgres-hot-standby-server)] Quick steps to unblock you: - If CDC is enabled: 1) Temporarily downgrade the Postgres source connector to 3.6.18 and retry the first sync. [[CDC PgJDBC](https://github.com/airbytehq/airbyte/issues/49802)] 2) Increase Initial Waiting Time in Seconds (Advanced) and ensure WAL retention (wal_keep_size) is sufficient. [[CDC 0 records](https://github.com/airbytehq/airbyte/issues/50435); [PG troubleshooting](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs)] 3) If you still get 0 bytes, try setting Invalid CDC position behavior to Re-sync data for the first run to force a snapshot. [[CDC PgJDBC](https://github.com/airbytehq/airbyte/issues/49802)] - If not using CDC: 1) Reset the connection and run Full refresh | Overwrite once more. 2) Re-check connector configs and credentials; re-validate Source and Destination. [[PG→PG config](https://discuss.airbyte.io/t/2348)] 3) If reading from a replica, consider enabling hot_standby_feedback or syncing from primary. [[Standby conflicts](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#sync-data-from-postgres-hot-standby-server)] If you can share whether CDC is enabled, the Airbyte platform version, and whether you’re reading from a primary or replica, I can tailor the next steps further.
a
@kapa.ai did reset and full refresh and still same issue
k
A message from kapa.ai
Thanks for confirming you already tried Reset + Full Refresh. Given it’s the very first sync and you still see “0 bytes | 0 records,” here’s what our sources suggest to check next, prioritized by likelihood: 1) If you’re using CDC with Postgres Source 3.7.0 - PgJDBC/CDC resume issues: Recent source-postgres versions after 3.6.18 can mis-handle the replication position due to the PgJDBC behavior that advances confirmed_flush_lsn when there are no changes, leading to empty or re-sync behavior. Try downgrading the Postgres source connector to 3.6.18 and rerun the initial sync. [[CDC PgJDBC issue](https://github.com/airbytehq/airbyte/issues/49802)] - Increase Initial Waiting Time in Seconds (Advanced): If the connector times out while searching for the WAL resume position, the run can “succeed” with 0 records. Users have resolved this by increasing this value significantly (example: 2400 seconds). [[CDC not loading](https://github.com/airbytehq/airbyte/issues/50435)] - WAL retention: Ensure wal_keep_size is high enough and that syncs start frequently so WAL needed for the snapshot/incremental isn’t purged. Otherwise Airbyte may fall back or find nothing to read. [[PG troubleshooting](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs)] 2) If you’re not using CDC (plain Full Refresh) - Known “0 bytes” behavior after upgrades: Some users saw full refreshs intermittently read 0 bytes after upgrading source/destination. A reset alone didn’t fix it; creating a fresh connection or re-validating connector settings helped. Also verify the correct schema/tables are selected and readable by the source user. [[Every-other full refresh](https://github.com/airbytehq/airbyte/issues/42468); [Stripe case showing 0 records with “succeeded” runs and start-date/config checks](https://discuss.airbyte.io/t/882)] - Destination-stage quirks can mask as “succeeded with 0”: Check that the destination is healthy and accepting data; if possible, try a new connection name and a single small table to isolate. [[Every-other full refresh](https://github.com/airbytehq/airbyte/issues/42468)] 3) Reading from a Hot Standby replica - If your source is a replica, long-running reads can be terminated by recovery conflict and result in empty pulls. Set hot_standby_feedback=true or run against the primary/quiet window. [[Hot standby conflicts](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#sync-data-from-postgres-hot-standby-server)] Concrete next steps to unblock: - If CDC is ON: - Downgrade source-postgres to 3.6.18 and retry first sync. [[CDC PgJDBC issue](https://github.com/airbytehq/airbyte/issues/49802)] - Set Initial Waiting Time (Advanced) higher (e.g., 1200–2400) and ensure wal_keep_size is sufficient. [[CDC not loading](https://github.com/airbytehq/airbyte/issues/50435); [PG troubleshooting](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs)] - Temporarily set Invalid CDC position behavior to Re-sync data to force a snapshot if the position is deemed invalid. [[CDC PgJDBC issue](https://github.com/airbytehq/airbyte/issues/49802)] - If CDC is OFF: - Create a brand-new connection selecting one known-nonempty table and run Full refresh | Overwrite. If that works, re-add streams incrementally. [[Every-other full refresh](https://github.com/airbytehq/airbyte/issues/42468)] - Verify source credentials can SELECT from the chosen schema/tables. If you can share: - Whether CDC is enabled, - Whether the source DB is primary or a replica, - Airbyte platform version, I can narrow this down further with targeted steps.
a
@kapa.ai primary db - Airbyte platform version --> latest version
k
A message from kapa.ai
Thanks. Since you’re on a primary Postgres and the first sync still shows 0 bytes with source-postgres 3.7.0, the most relevant known issue is the PgJDBC regression affecting CDC in recent connector versions. It can cause empty/looping syncs or “saved offset before confirmed LSN” behavior even on a fresh run. What to try next (in order): 1) If CDC is enabled on the source: - Downgrade the Postgres source connector to 3.6.18 and rerun the first sync. Multiple reports tie empty/failing CDC syncs to PgJDBC >= 42.7.x, which was introduced in source-postgres >= 3.6.19. Downgrading avoids the JDBC behavior that advances confirmed_flush_lsn unexpectedly. [[CDC PgJDBC issue](https://github.com/airbytehq/airbyte/issues/49802)] - Increase Initial Waiting Time in Seconds (Advanced). Users with “successful but 0 records” resolved it by letting the connector wait longer to locate the WAL resume point; one example worked at 2400 seconds. [[CDC 0 records](https://github.com/airbytehq/airbyte/issues/50435)] - Ensure WAL retention is sufficient. If WAL is recycled before the job reads it, Airbyte may re-snapshot or appear to find nothing. Increase wal_keep_size and/or run more frequently. [[Under CDC incremental mode…](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs)] Optional for troubleshooting: temporarily set Invalid CDC position behavior (Advanced) to Re-sync data for one run to force a snapshot; switch back to Fail Sync afterward to surface any LSN issues. [[CDC PgJDBC issue](https://github.com/airbytehq/airbyte/issues/49802)] 2) If you are NOT using CDC (Standard/Full Refresh): - Create a brand-new connection selecting a single known-nonempty table and run Full refresh | Overwrite. Some users observed “0 bytes” patterns tied to state or connector upgrades; a fresh connection often avoids it. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] - Double-check the source user has SELECT on the exact schema/tables you selected, and that you didn’t accidentally select only views (CDC supports tables, not views). [[Connector limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#connector-limitations)] Since you’re on a primary (not a hot standby), the hot-standby conflict path isn’t applicable. [[Replica conflicts](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#sync-data-from-postgres-hot-standby-server)] If you can confirm whether CDC is enabled on your source, I can tailor exact steps and example settings (e.g., suggested Initial Waiting Time and a wal_keep_size starting point).
a
@kapa.ai dont use CDC i'm use cursor
k
A message from kapa.ai
Got it — you’re not using CDC; you’re using a standard incremental sync with a cursor. For a first sync showing 0 bytes/0 records, here are the most likely causes and checks based on the docs and forum threads: - Cursor-field logic can filter everything out - Incremental extract is done with a WHERE on the cursor, e.g. SELECT … WHERE cursor_field >= last_sync_value (or > for append+dedeup). If your initial state is not null/lowest, or if records were updated without advancing the cursor field, nothing will be emitted. Try a Full Refresh | Overwrite (which you did) or ensure the cursor column always increases when rows change. [[Incremental append limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations); [Append+d edup limits](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#known-limitations)] - UI hiding incremental if no valid cursor column - Airbyte only offers incremental if at least one column is usable as a cursor. Historically, nullable cursor columns could block incremental until a fix; make sure your chosen cursor column is present and considered valid by the connector. If in doubt, try another monotonic column (e.g., updated_at). [[Forum: incremental option missing](https://discuss.airbyte.io/t/2694)] - “Succeeded with 0 records” symptoms have been reported on non-CDC runs too - After connector upgrades, users have seen “0 bytes” on full refresh/incremental due to state/plan issues; recreating the connection with a single known-nonempty table can help isolate. [[Every-other full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] - Another user saw first sync ok, then subsequent 0 records; root cause was config/state. Fresh connection per table helped diagnose. [[First sync ok, next 0](https://discuss.airbyte.io/t/3135)] What to try next - Verify the selected stream(s) really contain rows and your source user can SELECT them. - Create a brand-new connection with: - Replication: Full Refresh | Overwrite - Streams: pick one small table you know has rows - Run once. If this still yields 0 bytes, the issue is likely permissions/selection rather than cursor logic. [[Every-other full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] - For incremental: - Choose a strictly increasing cursor (e.g., updated_at or an ever-increasing ID) and re-run. - Ensure your process updates the cursor column on changes; otherwise, updates won’t be picked up. [[Incremental append limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations); [Append+dedup limits](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#known-limitations)] If the brand-new Full Refresh still returns 0, please share: - The exact table name you selected and a quick row count from source, - Whether the stream is a table (not a view), - The chosen cursor column (for incremental), and I’ll help pinpoint the next step.
a
@kapa.ai still same issue
k
A message from kapa.ai
Thanks for sticking with it. Since you’re not using CDC and a first sync still shows “0 bytes | 0 records,” here are focused checks and fixes grounded in the known docs and reports: 1) Validate the incremental cursor behavior - Incremental jobs filter rows using the cursor condition (>= or > depending on mode). If the cursor column doesn’t advance (e.g., rows updated without updating the cursor), nothing will be emitted. Try switching the connection to Full Refresh | Overwrite for the first run, then re-enable incremental with a strictly increasing cursor (e.g., updated_at). [[Inc. append limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations); [Inc. append+dedup limits](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#known-limitations)] 2) Recreate a minimal test connection - Create a brand-new connection selecting a single known-nonempty table (not a view), set to Full Refresh | Overwrite, and run once. If this still returns 0 bytes, the problem is likely selection/permissions rather than cursor logic. This “0 bytes” behavior after upgrades/state issues has been observed; starting fresh often isolates it. [[Every-other full refresh issue](https://github.com/airbytehq/airbyte/issues/42468); [First sync then 0](https://discuss.airbyte.io/t/3135)] 3) Ensure the stream is actually eligible and selected - Airbyte only exposes incremental if at least one usable cursor column exists. Past versions hid incremental for nullable cursor columns; ensure you’re on a version where your chosen column is accepted, or pick another monotonic column. [[Incremental option missing](https://discuss.airbyte.io/t/2694)] 4) Sanity checks - Confirm the table is a table (not a view) and has rows. - Confirm the source user has SELECT on that table/schema. - If you previously switched between modes or edited streams, do a full “Reset” and run again; if still 0, try a completely new connection as in step 2. [[Every-other full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] If you can share: - The exact table (and a SELECT COUNT(*) from source), - Whether the stream is a table vs view, - The cursor column you chose (for incremental), I can suggest the next precise step (e.g., cursor choice or connection reset pattern).
a
@kapa.ai still same issue see logs in the logs I see the tables but not wrote in the dest
k
Sorry @Alwaleed Alswayyed, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
a
@kapa.ai still same issue in the logs I see the tables but not wrote in the dest
k
A message from kapa.ai
Thanks for the extra detail. “Tables appear in source logs but nothing is written to the destination” on a first sync (non‑CDC) usually narrows down to one of these, based on our docs and issues: - Incremental with cursor filters everything out - Incremental runs select rows with a WHERE on the cursor (e.g., cursor_field >= last_sync_value). If rows were updated without advancing the cursor column, or if the initial state is off, nothing is emitted even though tables are discovered. Try one run as Full Refresh | Overwrite, then re-enable incremental with a strictly increasing cursor (e.g., updated_at that always changes on updates). [[Incremental append limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)] - Known “0 bytes but succeeded” behavior after upgrades/state - There are reports of full refresh/incremental jobs that show streams discovered in logs but emit 0 records and still succeed, often after connector upgrades or within multi‑stream connections. Testing in a fresh connection with only the affected small table helps isolate; several users saw a single‑table connection succeed while the larger multi‑table connection intermittently skipped streams. [[Every-other full refresh](https://github.com/airbytehq/airbyte/issues/42468); [Some streams not synced](https://discuss.airbyte.io/t/2049)] - Destination stage skipping work when no records seen - Destinations will log “skipping typing/deduping because it had no records during this sync,” which indicates nothing reached the destination buffer for that stream. This matches cases where the source emitted 0 records for a stream even though it was configured. [[Issue logs snippet](https://github.com/airbytehq/airbyte/issues/42468)] Targeted steps to unblock and pinpoint: 1) Create a brand‑new connection with just one known‑nonempty TABLE (not a view), set to Full Refresh | Overwrite, and run once. If that still writes 0 records, the problem is not cursor logic; it’s likely selection/permissions/state in the job planning. [[Every-other full refresh](https://github.com/airbytehq/airbyte/issues/42468); [Some streams not synced](https://discuss.airbyte.io/t/2049)] 2) If that single‑table full refresh works, add back streams gradually. In the failing multi‑stream connection, temporarily disable all but the affected stream and run again to confirm it writes when isolated. This mirrors reports where a small table only failed inside a larger connection. [[Some streams not synced](https://discuss.airbyte.io/t/2049)] 3) For incremental runs, choose a cursor that always advances on change (e.g., updated_at) and ensure your app updates it on every modification; otherwise updated rows won’t be emitted even though the table is scanned. [[Incremental append limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)] 4) Double‑check the source objects are TABLEs (not views) and that your source user has SELECT on them; incremental/standard mode requires tables. [[Postgres connector limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#connector-limitations)] If you can paste the specific destination log lines that say “skipping typing/deduping for stream … because it had no records” or confirm what the destination reports for that stream, we can determine whether the drop is happening in the source stage (no records emitted) or at the destination (write step being skipped). [[Issue logs snippet](https://github.com/airbytehq/airbyte/issues/42468)]
a
@kapa.ai still same issue even the dest create schema but no tables created
k
A message from kapa.ai
Thanks for the clarification. If the destination creates the schema but no tables appear after a “successful” sync, it usually means the destination never received any records for those streams, so it didn’t create the final tables (only raw/tmp artifacts may appear). Here are the most relevant checks based on our sources: - Confirm the destination raw tables - In many “0 records but succeeded” cases, only the Airbyte raw tables (_airbyte_raw_<stream>) show up. If there are truly no records emitted, even raw tables may be absent for that stream. The symptom “schema created but no tables” aligns with the source emitting 0 records. [[No tables after success](https://discuss.airbyte.io/t/843)]. - Some streams discovered but not synced - It’s possible for streams to be listed in the job config/logs but not actually queued/emitted, resulting in no destination tables. Users reported small tables sometimes missing from ReplicationAttemptSummary, and only appearing in the final summary without being processed. Creating a separate connection with just that table often syncs correctly. [[Streams not synced](https://discuss.airbyte.io/t/2049)]. - Full refresh writing 0 bytes after upgrade/state issues - There are reports where Full Refresh | Overwrite intermittently emits 0 bytes after connector upgrades; creating a fresh connection or isolating a single table helped. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)]. - Incremental with cursor: filtering everything out - If you’re using incremental (non‑CDC) with a cursor, the query filters on the cursor value; if the cursor column doesn’t advance (or initial state is off), nothing is emitted, so no destination tables are created. For first load, try Full Refresh | Overwrite to force row emission; then switch to incremental with a strictly increasing cursor (e.g., updated_at that always changes). [[Incremental limitations](https://docs.airbyte.com/platform/1.7/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations; https://docs.airbyte.com/platform/1.6/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations; https://docs.airbyte.com/platform/next/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)]. What to try next (quick isolation steps): - Create a brand‑new connection with a single known‑nonempty TABLE (not a view), set to Full Refresh | Overwrite, and run once. If this still results in “schema created but no tables,” it strongly indicates 0 records are being emitted by the source stage for that stream. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468); [Streams not synced](https://discuss.airbyte.io/t/2049)]. - Check the destination for _airbyte_raw_<stream> tables. If they exist and are empty, the source emitted 0 records; if they do not exist, the stream likely didn’t emit at all. [[No tables after success](https://discuss.airbyte.io/t/843)]. - Verify the selected stream is a base TABLE (not a view) and that the source user has SELECT privileges; Postgres source incremental does not support syncing views as tables. [[Connector limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#connector-limitations)]. If you can share: - One table name you selected and SELECT COUNT(*) from the source, - Whether _airbyte_raw_<that_table> exists in the destination, I can help pinpoint whether the drop is at the source emission step or at the destination write step and suggest the exact next action.
a
@kapa.ai Sill same issue what do you want to see i the logs to help me ?
k
A message from kapa.ai
Thanks — here’s exactly what would help from the logs to pinpoint why tables aren’t being written. From the single failing sync job, please share these snippets: - Job summary lines - ReplicationAttemptSummary / StandardSyncSummary showing recordsEmitted/Committed per stream and total. This tells us if the source emitted anything at all. [[Stripe 0 records example](https://discuss.airbyte.io/t/882)] - Source stage (source-postgres) for one affected stream - “Configured sync modes” list to confirm the stream and mode. - Any “Queued query” or “Starting new buffer stream …” lines for that stream (these indicate the extractor actually ran). Missing “Starting new buffer stream” has been tied to streams being skipped. [[Some streams not synced](https://discuss.airbyte.io/t/2049)] - Any ERROR/Exception, especially JDBC/Hikari timeouts or SSH messages if tunneling. These can cause silent “succeeded with 0.” [[Sync succeeded with 0](https://discuss.airbyte.io/t/1112)] - For incremental-with-cursor runs: the generated WHERE clause details or mentions of cursor state for that stream (to see if it filtered out everything). [[Incremental limitations](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)] - Platform/worker lines around stream processing - Lines like “will sync in … mode” and per-stream stats as they finish (recordsEmitted, bytes). Helpful to see if the stream was planned but produced 0. [[Every-other full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] - Destination stage (destination-postgres) - Whether _airbyte_raw_<stream> is created, and any “skipping typing/deduping because it had no records during this sync” messages. If these appear, the source emitted 0 records for that stream. [[Every-other full refresh issue](https://github.com/airbytehq/airbyte/issues/42468); [No tables but success](https://discuss.airbyte.io/t/843)] - If possible, a quick confirmation from the destination DB - Does the schema exist? - Does _airbyte_raw_<stream> exist? Is it empty? This helps confirm whether any records ever reached the destination writer. [[No tables but success](https://discuss.airbyte.io/t/843)] Where to get these quickly: - In the UI: Job History → failing job → View logs; copy the sections above. [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs)] If it’s easier, run a minimal test: - New connection, 1 known-nonempty TABLE, Full Refresh | Overwrite. - Share the exact lines listed above for just that stream. This isolates the issue cleanly. [[Some streams not synced](https://discuss.airbyte.io/t/2049); [Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] With those snippets, I can tell whether the drop happens: - in the source (no records emitted), - in the platform planning (stream skipped), - or in the destination (write step skipped because buffer was empty).
a
@kapa.ai see logs n i.a.c.d.j.s.AdaptiveStreamingQueryConfig(accept):33 Set new fetch size: 1078782 rows 2025-09-22 114342 info INFO main i.a.c.d.j.s.TwoStageSizeEstimator$Companion(getTargetBufferByteSize):80 Max memory limit: 12423528448, JDBC buffer size: 7454117069 2025-09-22 114342 info INFO main i.a.c.d.j.s.AdaptiveStreamingQueryConfig(accept):33 Set new fetch size: 29579830 rows 2025-09-22 114342 info INFO main i.a.c.i.s.j.AbstractJdbcSource(discoverPrimaryKeys):506 Discover primary keys for tables: [admin_honeypot_loginattempt, auditlog_logentry, auth_group, auth_group_permissions, auth_permission, authtoken_token, brokerage_brokerage, brokerage_invitation, brokerage_team, chats_chat, chats_chat_users, chats_chatmessage, common_announcement, common_notification, common_sms, common_splashvideo, common_systemlog, common_voicecall, constance_constance, contracts_assignusercontract, contracts_contract, contracts_contract_payment_methods, contracts_contractbeneficiary, contracts_contractcollection, contracts_contractdoc, contracts_contractfeedback, contracts_contractinspectionmediafile, contracts_contractmessage, contracts_contractpaymentmethod, contracts_contractprevioususer, contracts_landlordcontract, contracts_landlordcontract_rent_requests, contracts_legalorder, contracts_mastercontract, contracts_payment, contracts_paymenttype, contracts_sadadmontitoring, django_admin_log, django_celery_results_chordcounter, django_celery_results_groupresult, django_celery_results_taskresult, django_content_type, django_migrations, django_session, favorites_favoritepropertyadvertisement, fcm_django_fcmdevice, geo_city, geo_district, geo_neighborhood, health_check_db_testmodel, moyasar_webhook, moyasar_webhookevent, notify_notificationtype, notify_notify, notify_whatsappnotification, openbanking_account, openbanking_accountidentifier, openbanking_accountinsights, openbanking_balance, openbanking_balanceinsights, openbanking_bankdetail, openbanking_beneficiary, openbanking_consent, openbanking_consent_accounts, openbanking_customer, openbanking_directdebit, openbanking_entity, openbanking_event, openbanking_expenseinsights, openbanking_identity, openbanking_incomeinsights, openbanking_incomeinsights_transactions, openbanking_incometransaction, openbanking_inflowinsights, openbanking_openbankingtransaction, openbanking_outflowinsights, openbanking_scheduledpayment,
k
A message from kapa.ai
Thanks for sharing the snippet. From what you pasted, I can see: - AdaptiveStreamingQueryConfig is ramping the fetch size (so the JDBC reader is preparing to stream rows). - The source is discovering primary keys for many tables (so schema discovery is working). However, these lines alone don’t show whether any records were actually emitted per stream, nor what the destination did. In multiple similar reports, users saw tables listed in discovery and planning, but the runs still produced 0 records and no tables at the destination. The key is to find where the pipeline “drops” the data: source emission vs destination write. [[Some streams not synced](https://discuss.airbyte.io/t/2049); [Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] To pinpoint the cause, could you share the following additional log lines for one affected stream (a small table you know has rows)? What to extract from the same job logs: - Configured sync modes: The line that lists each stream and the mode (e.g., full_refresh – overwrite, incremental). This confirms the stream is actually planned to sync. [[Some streams not synced](https://discuss.airbyte.io/t/2049)] - Source stage, per stream: - “Starting new buffer stream …” and any “Queued query …” lines for that stream. When these are missing, the stream is often skipped even though it was discovered. [[Some streams not synced](https://discuss.airbyte.io/t/2049)] - Any WARN/ERROR (e.g., Hikari timeouts, SSH issues). These can lead to “succeeded with 0 records” symptoms. [[Sync succeeded with 0](https://discuss.airbyte.io/t/1112)] - ReplicationAttemptSummary or StandardSyncSummary: Shows recordsEmitted/bytes for each stream. If it’s 0 for the stream, the problem is on the source side (no rows emitted). [[First sync 0 bytes](https://discuss.airbyte.io/t/3135)] - Destination stage: - Messages like “skipping typing/deduping because it had no records during this sync” for that stream. This indicates the destination received nothing for that stream. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] - Confirmation of creating _airbyte_raw_<stream> (even if empty) vs no raw table at all. If there’s no raw table, the source likely emitted nothing. [[No tables after success](https://discuss.airbyte.io/t/843)] A quick isolation test (recommended): - Create a brand-new connection with a single known-nonempty TABLE (not a view), set to Full Refresh | Overwrite, and run once. If that still results in 0 records and no table in the destination, it strongly indicates the source stage isn’t emitting rows for that stream. This exact pattern has been seen in prior threads and issues and was easier to debug when isolated. [[Some streams not synced](https://discuss.airbyte.io/t/2049); [Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468); [No tables after success](https://discuss.airbyte.io/t/843)] Also double-check two basics: - Ensure the selected object is a base table (not a view). Postgres source syncs tables; views require using Standard replication and may behave differently. [[Connector limitations](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#connector-limitations)] - Verify the source user has SELECT on that table/schema. Once you share the per-stream lines above (configured modes, “Starting new buffer stream…”, ReplicationAttemptSummary totals, and any destination “skipping … no records” messages), I can tell you exactly where it’s failing and the next fix to apply.
a
@kapa.ai mixpanel connectoer moving data to dest and it's working fine but with postgres source no record loaded
k
A message from kapa.ai
Thanks for the clarification. Since Mixpanel → destination works but Postgres source → destination loads 0 records (first sync, non‑CDC), the issue is almost certainly on the Postgres source side. Based on our docs and past reports, here are the most relevant causes and steps to isolate/fix: Most likely causes - Incremental cursor filtering everything out: In standard incremental mode, the source queries with a WHERE on the cursor; if the cursor column doesn’t advance or initial state is off, 0 rows are emitted even though tables are discovered. Try a one‑time Full Refresh | Overwrite with a single known‑nonempty table to force emission; for incremental, use a strictly increasing cursor like updated_at that always changes on updates. [[Incremental limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)] - “Succeeded with 0 records” after connector upgrades/state: Users have seen full refresh or incremental runs plan streams but emit 0 bytes, especially after upgrading source-postgres. Creating a brand‑new connection with just one table often bypasses bad state and helps diagnose. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468); [First sync then 0](https://discuss.airbyte.io/t/3135)] - Streams discovered but not actually synced: Logs may list tables, but the source never starts buffering for some streams, so the destination creates schema but not tables. Testing the affected stream in its own connection usually syncs correctly, confirming the issue. [[Some streams not synced](https://discuss.airbyte.io/t/2049)] - Reading from hot standby (if applicable): On replicas, long reads can be terminated, leading to 0 records. You said primary DB earlier, so this likely doesn’t apply; mentioning for completeness. [[Hot standby conflicts](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#sync-data-from-postgres-hot-standby-server)] Targeted steps to unblock 1) Minimal fresh test - Create a new connection: - Source: Postgres (same credentials). - Choose 1 small, known‑nonempty TABLE (not a view). - Replication: Full Refresh | Overwrite. - Run once. If you still get 0 records and no destination table, the source stage isn’t emitting rows. This pattern matches prior reports. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468); [No tables after success](https://discuss.airbyte.io/t/843)] 2) Check destination raw table - In the destination DB, look for _airbyte_raw_<your_stream>. - If it exists but is empty, the source emitted 0 rows. - If it doesn’t exist, that stream was not emitted at all. [[No tables after success](https://discuss.airbyte.io/t/843)] 3) If using incremental (cursor) - Switch that connection temporarily to Full Refresh | Overwrite to confirm data flows. - When re‑enabling incremental, pick a cursor column that strictly increases on every change (e.g., updated_at), otherwise updates won’t be picked up. [[Incremental limits](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes/incremental-append#known-limitations)] 4) Connector version angle - There are open reports where Full Refresh | Overwrite emitted 0 bytes intermittently in newer source-postgres versions. If the fresh single‑table test fails, try pinning source‑postgres to an earlier stable version and retry the same single‑table run. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468)] If you can share from the job logs for that one-table test: - The ReplicationAttemptSummary/StandardSyncSummary (recordsEmitted for that stream), - Any destination line like “skipping typing/deduping because it had no records,” I can tell you precisely whether the drop is at source emission or destination write and suggest the next fix. [[Full refresh issue](https://github.com/airbytehq/airbyte/issues/42468); [No tables after success](https://discuss.airbyte.io/t/843)]