Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBZ-7351 Avoid child data snapshots from PostgreSQL parent tables #5159

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 15, 2024

  1. DBZ-7351 Avoid child data snapshots from PostgreSQL parent tables

    When PostgreSQL tables are configured with inheritance (INHERIT clause),
    data is streamed by Debezium from the table where the data resides
    (usually the child tables).
    
    However, during the initial/incremental snapshot, Debezium selects all
    data from the parent tables, including child data, which pushes
    unexpected/duplicate data into the topics (all data from child tables).
    
    Using a "SELECT ... FROM ONLY" retrieves only data from the current
    table and avoids retrieving data from child tables.
    
    Signed-off-by: Nicolas Payart <npayart@gmail.com>
    koleo committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    c92d188 View commit details
    Browse the repository at this point in the history