Loading topic
postgresql.conf and pg_hba.conf, use psql, and handle basic Linux networking such as hosts, ports and firewalls. The previous chapters covered W6 min readwal_level = replica, enough max_wal_senders, a replication line in pg_hba.conf, and a role with the REPLICATION attribute. It also assumes you can start and stop a PostgreSQL server as the postgres OS user and read a 5 min readpg_basebackup: turning the copied data directory into a running hot standby. It assumes you can start and stop a server with pg_ctl or systemd, edit postgresql.conf, and use psql. It also assumes you have already prepared the primary and run pg_basebackup5 min readstandby.signal, and primary_conninfo. You should be comfortable with psql and with the idea of a read-only transaction.6 min readpg_basebackup, and that you can read pg_stat_replication. You should know what a WAL segment and an LSN are. Here you will learn what a replication slot does, how to create and inspect one, and how an unused slot can fi6 min readpg_stat_replication, editing postgresql.conf and reloading the server, and running two psql sessions side by side. You should also know that VACUUM removes dead row vers5 min readpg_stat_replication and reload the server configuration.5 min readpsql, pg_ctl, postgresql.conf, and the idea of WAL positions (LSNs). Here you will learn how to promote a standby, what changes when you do, and how to plan a7 min readpg_basebackup, primary_conninfo, replication slots and pg_stat_replication do. You should also be able to edit postgresql.conf and restart a server.6 min readpg_basebackup, set primary_conninfo, and u5 min readpostgresql.conf.5 min readpg_basebackup, and some familiarity with pg_stat_replication, replication slots, and promotion. It also assumes you know what a publication of rows means in plain SQL terms (tables, primary ke6 min read