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

Refresh database tables when we see a relation message in the replication slot #924

Open
acco opened this issue Jan 27, 2025 — with Linear · 0 comments
Open

Refresh database tables when we see a relation message in the replication slot #924

acco opened this issue Jan 27, 2025 — with Linear · 0 comments

Comments

Copy link
Contributor

acco commented Jan 27, 2025

We should be using the presence of relation messages coming through the replication slot as a possible signal that schemas have changed. If schemas change, we should trigger a refresh of the PostgresDatabase.tables

Easiest to start: When we see an unrecognized table coming through the slot, good sign something was created.

Will help in test/dev, where tables may be getting dropped/created frequently

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

No branches or pull requests

1 participant