Loading topic
DELETE FROM orders without a WHERE clause at 14:31. With PITR you restore the cluster to 14:30:59 and lose almost nothing. A nightly dump would return you to the pre6 min readpostgresql.conf, use psql and the Linux shell, and know roughly what the data directory contains. It also assumes you know what a transaction and durability are. By the end you will understand what the write-ahead log (WAL) holds, how it is split into files, and6 min readpostgresql.conf, restart and reload a PostgreSQL server, and use the Linux shell with file ownership and permissions. It also assumes you know that PostgreSQL writes changes to the write-ahead log (WAL) before it writes them to data files. The commands use a Debia6 min readarchive_mode = on makes PostgreSQL run archive_command for each completed WAL segment. You should also be comfortable with shell scripts, file permissions, and reloading PostgreSQL co6 min readpg_basebackup makes that copy. This chapter assumes you can edit postgresql.conf and pg_hba.conf, and that you have already enabled WAL5 min readarchive_command retries in the background. Your first sign of trouble is often a restore that cannot find a WAL segment, or a full disk on the primary. This chapter shows how to confirm that archiving works and how6 min readrestore_command and recovery.signal control that. It assumes you can edit postgresql.conf, start and stop the server with systemctl, and run commands as the postgres user5 min readpostgresql.conf, that you have a base backup and a working WAL archive, and that restore_command is already set. It covers how to tell PostgreSQL where to stop replaying WAL. The settings are called recovery targets.6 min readpostgresql.conf and run SQL as a superuser. You also need to know that WAL archiving is already running, as set up in the earlier chapters on archiving and `restore_comman6 min readpg_basebackup, and met restore_command and the recovery targets. It puts them together into one recovery, from the moment you decide to restore to the moment the repaired database accepts writes. The examples u7 min readrestore_command, a recovery.signal file and a recovery target such as recovery_target_time. Here we cover the last decision in that setup. When replay reaches the target, what should the server6 min readrestore_command, recovery.signal and a recovery target, and that you can read WAL segment file names. 6 min readarchive_command, take a base backup with pg_basebackup, and run a recovery. Here you will learn how long to keep each of those files and how to delete old ones without breaking the backups you still need.5 min readarchive_command, pg_basebackup, restore_command, recovery.signal and recovery targets fit together. You should also be comfortable with timelines and with retention rules that keep the WAL a base backup ne7 min read