February 2020
Intermediate to advanced
734 pages
38h 13m
English
These steps will assume we have our old primary (pg-old), a new primary (pg-new), and a proxy server running PgBouncer. Follow these instructions to complete the upgrade process:
SELECT pid, state, client_addr, username, now() - xact_start AS duration, query FROM pg_stat_activity WHERE state != 'idle' AND now() - xact_start > INTERVAL '60s' ORDER BY duration DESC;
SELECT slot_name, database, active, pg_wal_lsn_diff( pg_current_wal_lsn(), confirmed_flush_lsn ) AS write_lag FROM pg_replication_slots;
Read now
Unlock full access