pg_dumpall --exclude-database option - Mailing list pgsql-hackers

From Andrew Dunstan
Subject pg_dumpall --exclude-database option
Date
Msg-id 43a54a47-4aa7-c70e-9ca6-648f436dd6e6@2ndQuadrant.com
Whole thread Raw
Responses Re: pg_dumpall --exclude-database option
List pgsql-hackers
PFA a patch to provide an --exclude-database option for pg_dumpall. The 
causes pg_dumpall to skip any database whose name matches the argument 
pattern. The option can be used multiple times.


Among other use cases, this is useful where a database name is visible 
but the database is not dumpable by the user. Examples of this occur in 
some managed Postgres services.


I will add this to the September CF.


cheers


andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_upgrade from 9.4 to 10.4
Next
From: Michael Paquier
Date:
Subject: Re: Standby trying "restore_command" before local WAL