pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: joe@tanga.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7874: GUC's not in database dumps
Date: Thu, 14 Feb 2013 01:37:04 +0000
Message-ID: <E1U5nl2-0001mw-Fe@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (2+ messages)  latest in thread

Message-ID: <E1U5nl2-0001mw-Fe@wrigleys.postgresql.org>
Permalink:  ../E1U5nl2-0001mw-Fe@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1U5nl2-0001mw-Fe@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: joe@tanga.com
  Subject: Re: BUG #7874: GUC's not in database dumps
  In-Reply-To: <E1U5nl2-0001mw-Fe@wrigleys.postgresql.org>
  References: <E1U5nl2-0001mw-Fe@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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