May 2017
Beginner to intermediate
328 pages
7h 17m
English
Just to make the data import complete, it is worth mentioning the restore command. After all, it is not very an uncommon scenario to receive some data in the form of a database, schema, or even a single table backup.
For this scenario, let's create a backup of one of the tables imported before:
pg_dump -h localhost -p 5434 -U postgres -t data_import.earthquakes_subset_with_geom -c -F c -v -b -f earthquakes_subset_with_geom.backup mastering_postgis
Since there was a -v option specified, you should get a similarly verbose output:
pg_dump: reading schemaspg_dump: reading user-defined tablespg_dump: reading extensionspg_dump: reading user-defined functionspg_dump: reading user-defined typespg_dump: reading procedural ...
Read now
Unlock full access