Troubleshooting·PostgreSQL
PostgreSQL Custom Format Dumps and Selective Restore
A custom-format dump carries a table of contents, so you can restore one table out of it. Doing that here **fails** - because filtering to a table does not bring its schema along, and pg_restore will not create what you filtered out.
Backup and Restore Guide 23 of 47 Intermediate
- OSUbuntu 26.04 LTS (resolute)
- PostgreSQL18.6-0ubuntu0.26.04.1
- wal_levelreplica
- TimeAbout 15 min
- Reviewed27 August 2026
Written against the versions above. Custom format is compressed and indexable. It is the format to use for anything you might restore selectively, which is most things.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| db-a01 | 192.168.0.81 | Ubuntu 26.04 LTS | Primary / Source / Replica Set Member 1 | 2 Core | 4 GB | 50 GB |
Before you start
- The
appdbdatabase.
-
Dump in custom format and read its table of contents
-
Restore one table, and watch it fail
-
Create the dependency, then restore