June 2024
Intermediate to advanced
456 pages
11h 34m
English
PostgreSQL has hundreds of tunable parameters for all sorts of purposes. In this section, you’ll look at just one parameter related to replication. Because PostgreSQL allows primary and replica instances to have distinct parameter values, you can customize parameters on replicas to better serve their role.[367]
When might this be helpful? When long queries run on a replica, they can get canceled due to accessing row versions that cause a conflict with versions on the primary.
This can happen when VACUUM runs on the primary, triggered by the accumulation of dead tuples and having met a threshold. When VACUUM is running, if the reader instance is querying the rows that have dead tuples being processed ...
Read now
Unlock full access