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

Add estimated lag metric for CDC based replication in MIRROR UI #548

Closed
saisrirampur opened this issue Oct 21, 2023 · 1 comment
Closed
Assignees

Comments

@saisrirampur
Copy link
Contributor

saisrirampur commented Oct 21, 2023

Estimated lag can be calculated by running the below query on source Postgres database:

SELECT slot_name,

round((redo_lsn-restart_lsn) / 1024 / 1024 / 1024, 2) AS GB_behind

FROM pg_control_checkpoint(), pg_replication_slots WHERE slot_name='slot_name_associated_to_that_mirror';
@Amogh-Bharadwaj
Copy link
Contributor

Amogh-Bharadwaj commented Nov 30, 2023

Closing as lag is shown in our Postgres peer page: #576

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

3 participants