Frequently Asked Questions are intended to provide details for specific questions that may or may not be covered in the User Guide, Configuration, or Command reference. If you are unable to find details for your specific issue here, remember that the
could not find WAL segmenterror?
The cause of this error can be a result of many different issues, some of which may be:
It is advisable to:
A full backup set can be expired using the
For example, the
unable to find hostname 'my.backup.bucket.s3.amazonaws.com' in certificate common name or subject alternative names
will occur.
The apt.postgresql.org repository maintains an archive of older versions. Debian also maintains snapshots of all test builds.
Configuring backup from standby is generally intended to reduce load on the primary, so switching backups to the primary when the standby is down often defeats the point. Putting more load on the primary in a situation where there are already failures in the system is not recommended. Backups are not critical as long as you have one that is fairly recent -- the important thing is to keep up with WAL archiving. There is plenty of time to get a backup when the system is stable again.
If you really need a backup, the solution is to have more standbys or remove
No. When primary and standby databases are configured, the
See the Dedicated Repository Host section of the
The most common mistake when using time-based Point-in-Time Recovery is forgetting to choose a backup set that is before the target time.
To use the
See the Point-in-Time Recovery section of the
The suffix is the SHA1 checksum used to verify file integrity. There is no way to omit it.
The various backup types require the same amount of time to restore. Restore retrieves files based on the backup manifest, which may reference files from a previous backup in the case of incremental or differential backups. While there could be differences in time spent making a given backup (depending on backup type), database size determines restore time (disk I/O, network I/O, etc. being equal).
However, there is a workaround if your goal is to create a self-contained export of a database that you can transfer (e.g., via USB). You can make a backup with the --archive-copy option enabled to ensure that the necessary WAL segments are stored along with the backup. Then, restore it using --type=none --pg1-path=/your/target/path. This produces a restored PostgreSQL data directory with all required WAL files already placed in pg_wal
, similar to what
You can then copy this directory to another system, and
Please note that recovering this backup will not result in a timeline switch, which means that this cluster should not push WAL to the original repository that it was exported from. If the new cluster is in a network-isolated environment this should not be a problem.