pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7874: GUC's not in database dumps
2+ messages / 2 participants
[nested] [flat]
* BUG #7874: GUC's not in database dumps
@ 2013-02-14 01:37 joe@tanga.com
0 siblings, 1 reply; 2+ messages in thread
From: joe@tanga.com @ 2013-02-14 01:37 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 7874
Logged by: Joe Van Dyk
Email address: joe@tanga.com
PostgreSQL version: 9.2.1
Operating system: OSX, Linux
Description:
If I run:
alter database foo set my.name = 'joe';
that GUC isn't available inside backups of that database.
It does show up when doing "pg_dumpall -s".
It does *not* show up when doing "pg_dumpall -g"
$ createdb foo
$ psql foo
psql (9.2.1)
foo=# alter database foo set my.name = 'joe';
ALTER DATABASE
foo=# \q
$ pg_dump foo > foo.sql
$ cat foo.sql
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
--
-- Name: public; Type: ACL; Schema: -; Owner: joe
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM joe;
GRANT ALL ON SCHEMA public TO joe;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- PostgreSQL database dump complete
--
--
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
* Re: BUG #7874: GUC's not in database dumps
@ 2013-02-15 20:33 Bruce Momjian <bruce@momjian.us>
parent: joe@tanga.com
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2013-02-15 20:33 UTC (permalink / raw)
To: joe@tanga.com; +Cc: pgsql-bugs
On Thu, Feb 14, 2013 at 01:37:04AM +0000, joe@tanga.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 7874
> Logged by: Joe Van Dyk
> Email address: joe@tanga.com
> PostgreSQL version: 9.2.1
> Operating system: OSX, Linux
> Description:
>
> If I run:
> alter database foo set my.name = 'joe';
>
> that GUC isn't available inside backups of that database.
>
> It does show up when doing "pg_dumpall -s".
>
> It does *not* show up when doing "pg_dumpall -g"
>
This is a TODO:
https://wiki.postgresql.org/wiki/Todo#ALTER
Refactor handling of database attributes between pg_dump and pg_dumpall
Currently only pg_dumpall emits database attributes, such as ALTER
DATABASE SET commands and database-level GRANTs. Many people wish that
pg_dump would do that. One proposal is to let pg_dump issue such
commands if the -C switch was used, but it's unclear whether that will
satisfy the demand.
http://www.postgresql.org/message-id/4864F001.50909@archonet.com
http://www.postgresql.org/message-id/11646.1272814212@sss.pgh.pa.us
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
--
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:[~2013-02-15 20:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14 01:37 BUG #7874: GUC's not in database dumps joe@tanga.com
2013-02-15 20:33 ` Bruce Momjian <bruce@momjian.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