1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 17:46:02 +02:00

pg_restore: add example for listing contents of a dump file (#4178)

This commit is contained in:
Robert Požarickij 2020-07-17 20:37:32 +03:00 committed by GitHub
parent fc506737f1
commit 0a4e1cc43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,10 @@
`pg_restore -h {{host}} -p {{port}} -d {{db_name}} {{archive_file.dump}}`
- List database objects included in the archive:
`pg_restore --list {{archive_file.dump}}`
- Clean database objects before creating them:
`pg_restore --clean -d {{db_name}} {{archive_file.dump}}`