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

Missing pg_replication_origin #1121

Open
dusatvoj opened this issue Feb 7, 2025 · 0 comments
Open

Missing pg_replication_origin #1121

dusatvoj opened this issue Feb 7, 2025 · 0 comments

Comments

@dusatvoj
Copy link

dusatvoj commented Feb 7, 2025

Proposal

Use case. Why is this important?
I recently run into a problem. I'm using logical replication and physical replication together. I do monitoring of pg_replication_slots. I can also monitor if I run out of replication slots defined in pg_replication_slots ... but not in pg_replication_origin.

So when I run logical replication I currently can't monitor if I don't run out of logical slots at data warehouse. My data warehouse consists of many databases merged into single data analytics cluster. These databases are replicated logically (if it works) but sometimes I run into could not find free replication state slot for replication origin with ID ... and don't know about it.

Needed query is simple ... select count(*) from pg_replication_origin.

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