Skip to content

Conversation

@danolivo
Copy link
Contributor

Remove the following unused routines:

  • get_commit_timestamp
  • advance_replication_slot
  • monitor_replication_lag(text, boolean)
  • monitor_replication_lag_wait
  • monitor_multiple_replication_lags
  • wait_for_n3_sync
  • check_node_lag

In the procedure monitor_lag_with_dblink, use the function clock_timestamp instead of now(). The now() function is stable and doesn't change the value within the monitoring loop. So, the volatile clock_timestamp looks more correct to obtain fresh value of time.

Remove the following unused routines:
- get_commit_timestamp
- advance_replication_slot
- monitor_replication_lag(text, boolean)
- monitor_replication_lag_wait
- monitor_multiple_replication_lags
- wait_for_n3_sync
- check_node_lag

In the procedure monitor_lag_with_dblink, use the function clock_timestamp
instead of now(). The now() function is stable and doesn't change the value
within the monitoring loop. So, the volatile clock_timestamp looks more correct
to obtain fresh value of time.
@danolivo danolivo added the enhancement New feature or request label Dec 10, 2025
@danolivo danolivo self-assigned this Dec 17, 2025
Copy link
Contributor

@ibrarahmad ibrarahmad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mason-sharp mason-sharp merged commit 8e523a8 into main Jan 7, 2026
5 checks passed
@mason-sharp mason-sharp deleted the spoc-368 branch January 7, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants