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
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.

2 participants