-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
pg_dumpall: add page #7646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
pg_dumpall: add page #7646
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
702ccd8
ls: Add pg_dumpall command to common
deed02392 190c9c8
Update pages/common/pg_dumpall.md
deed02392 458c15b
Update pages/common/pg_dumpall.md
deed02392 546bd1e
Update pages/common/pg_dumpall.md
deed02392 32481ce
Update pages/common/pg_dumpall.md
deed02392 0a069ff
Update pages/common/pg_dumpall.md
deed02392 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # pg_dumpall | ||
|
|
||
| > Extract a PostgreSQL database cluster into a script file or other archive file. | ||
| > More information: <https://www.postgresql.org/docs/current/app-pgdumpall.html>. | ||
|
|
||
| - Dump all databases: | ||
|
|
||
| `pg_dumpall > {{output_file.sql}}` | ||
deed02392 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - Same as above, customize username: | ||
deed02392 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| `pg_dumpall -U {{username}} > {{output_file.sql}}` | ||
deed02392 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - Same as above, customize host and port: | ||
|
|
||
| `pg_dumpall -h {{host}} -p {{port}} > {{output_file.sql}}` | ||
|
|
||
| - Dump all databases into a custom-format archive file with moderate compression: | ||
|
|
||
| `pg_dumpall -Fc > {{output_file.dump}}` | ||
|
|
||
| - Dump only database data into an SQL-script file: | ||
|
|
||
| `pg_dumpall -a > {{output_file.sql}}` | ||
deed02392 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - Dump only schema (data definitions) into an SQL-script file: | ||
|
|
||
| `pg_dumpall -s > {{output_file.sql}}` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.