Skip to content

pg_dump: Add --schema-no-create option [PG14] #659

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

Open
wants to merge 1 commit into
base: REL_14_STABLE_neon
Choose a base branch
from

Conversation

NanoBjorn
Copy link

Adds a new --schema-no-create option to pg_dump that allows dumping schema data without generating CREATE SCHEMA statements. When this option is used, the specified schema is automatically included in the dump but the schema creation statement is skipped, allowing data to be imported into existing schemas.

This option is used by the Neon fast import feature (PR #11908) to allow migrations of only objects in certain schemas.

Usage: pg_dump --schema-no-create=schema_name database_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants