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

Support publication column lists #85

Merged
merged 5 commits into from
Jan 15, 2025
Merged

Conversation

passcod
Copy link
Contributor

@passcod passcod commented Jan 15, 2025

What kind of change does this PR introduce?

Feature

What is the current behavior?

#83

What is the new behavior?

We read from pg_publication_rel to figure out the subset of columns that are published.

Additional context

This is done by adding a publication: Option<&str> argument to the get_column_schemas method and its callers, up to PostgresSource::new, and then using that when present. I've managed to do the work preserving a single query, though that did make it a bit gnarly to support both subsetted tables and full tables.

@passcod passcod marked this pull request as ready for review January 15, 2025 09:04
pg_replicate/src/clients/postgres.rs Outdated Show resolved Hide resolved
pg_replicate/src/clients/postgres.rs Show resolved Hide resolved
@passcod passcod requested a review from imor January 15, 2025 12:09
@imor
Copy link
Contributor

imor commented Jan 15, 2025

LGTM, thanks for the PR.

@imor imor merged commit e5c99a8 into supabase:main Jan 15, 2025
6 checks passed
@passcod passcod deleted the feat/colsubset branch January 15, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants