A plain SQL dump is all or nothing. PostgreSQL’s custom format lets me restore a single table later.
pg_dump -Fc -f appdb.dump appdb
pg_restore -l appdb.dump
pg_restore -d appdb_copy -t users appdb.dump
-Fc writes the custom archive format, which is compressed by default. pg_restore -l lists everything inside, and -t users restores only that table into the target database, which must already exist.
It is also a good default for large databases, since the dump is compressed while it is written. The file is not readable SQL and only pg_restore can use it. If you want a text file to read or pipe into psql, use the default plain format instead.
Further reading: PostgreSQL documentation: pg_dump