pg_dump -U app -d appdb -t users -Fc -f users.dump

Category: Databases & SQL

pg_dump -U app -d appdb -t users -Fc -f users.dump

Back up a single table

-t users dumps only that table, handy for moving one relation between environments. Repeat -t for several tables. Custom format keeps the restore flexible.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.