Skip to content

Glossary: PostgreSQL Beyond the Basics

pg_stat_replication

Also written: replay_lag

A view on the primary with one row per connected replica. It shows state and `replay_lag`, and you can compute the byte lag from it.

Where the book teaches it

Related terms

Replication lagLSN