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:
parent
fc506737f1
commit
0a4e1cc43e
1 changed files with 4 additions and 0 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue