Pg_last_xact_replay_timestamp
Monitor PostgreSQL Replication Lag with pg_stat_replication
Monitor PostgreSQL Replication Lag with pg_stat_replication A standby lagging more than a few seconds is rarely a transient hiccup — it is a query backlog on the standby, a network ceiling between the nodes, a misconfigured hot_standby_feedback, or a single-threaded apply storm. pg_stat_replication joined to …
Read Morepg_is_in_recovery — Monitor PostgreSQL Standby Status
Monitor PostgreSQL Recovery Status with pg_is_in_recovery Is this server a standby, and is it still applying WAL? One SELECT answers both questions. It calls pg_is_in_recovery() and the functions that report how far a standby has received and replayed the write-ahead log (WAL), and it adds the two legacy …
Read MoreUnveiling Your PostgreSQL Server - A Diagnostic Powerhouse
Apr 4, 2024 / · 6 min read · postgresql database server administration monitoring pg_settings pg_backend_pid pg_backup_start_time pg_conf_load_time pg_current_logfile pg_is_in_backup pg_is_in_recovery pg_is_wal_replay_paused pg_jit_available pg_last_wal_receive_lsn pg_last_wal_replay_lsn pg_last_xact_replay_timestamp pg_listening_channels pg_ls_archive_statusdir pg_ls_logdir pg_ls_tmpdir pg_ls_waldir pg_postmaster_start_time pg_reload_conf pg_rotate_logfile pg_sleep pg_sleep_for pg_sleep_until ·Unveiling Your PostgreSQL Server: A Treasure Trove of Information This comprehensive PostgreSQL script delves into the inner workings of your database server, revealing valuable details about its version, configuration, connections, users, and more. It empowers database administrators and developers with insights to …
Read More