pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedDumping database creation options and ACLs
2+ messages / 2 participants
[nested] [flat]
* Dumping database creation options and ACLs
@ 2014-12-08 09:45 Ronan Dunklau <ronan.dunklau@dalibo.com>
2014-12-08 14:55 ` Re: Dumping database creation options and ACLs Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Ronan Dunklau @ 2014-12-08 09:45 UTC (permalink / raw)
To: pgsql-bugs
Hello.
Not sure if I should file this on pgsql-bugs or pgsql-hackers...
As of now, the only way to restore database options and ACLs is to use
pg_dumpall without the globals options. The often recommended pg_dumpall -g +
individual dumps of the target databases doesn't restore those.
Since pg_dump/pg_restore offer the ability to create the database, it should do
so with the correct owner, options and database ACLs.
There was some discussion about those issues a while ago (see
http://www.postgresql.org/message-id/11646.1272814212@sss.pgh.pa.us for
example). As I understand it, the best way to handle that would be to push
these modifications in pg_dump, but it is unclear how it should be done with
regards to restoring to a different database.
In the meantime, it would be great to add an option to pg_dumpall allowing to
dump this information. We could add the db creation in the output of
pg_dumpall -g, and add a specific --createdb-only option (similar to --roles-
only and --tablespaces-only).
Would such a patch be welcome ?
--
Ronan Dunklau
http://dalibo.com - http://dalibo.org
Attachments:
signature.asc (application/pgp-signature, 472B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Dumping database creation options and ACLs
2014-12-08 09:45 Dumping database creation options and ACLs Ronan Dunklau <ronan.dunklau@dalibo.com>
@ 2014-12-08 14:55 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2014-12-08 14:55 UTC (permalink / raw)
To: Ronan Dunklau <ronan.dunklau@dalibo.com>; +Cc: pgsql-bugs
Ronan Dunklau <ronan.dunklau@dalibo.com> writes:
> Not sure if I should file this on pgsql-bugs or pgsql-hackers...
I think -hackers would be the more appropriate list for this type
of discussion --- it's really a design discussion not a bug report.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-12-08 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-12-08 09:45 Dumping database creation options and ACLs Ronan Dunklau <ronan.dunklau@dalibo.com>
2014-12-08 14:55 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox