Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Ryo-0002cu-9I for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Feb 2013 20:33:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U6Ryn-0004Ut-2s for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Feb 2013 20:33:57 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Ryf-0004Nv-62 for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 20:33:49 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Rye-0005Ft-1a for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 20:33:48 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1U6Ryd-0001S4-Gg; Fri, 15 Feb 2013 15:33:47 -0500 Date: Fri, 15 Feb 2013 15:33:47 -0500 From: Bruce Momjian To: joe@tanga.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7874: GUC's not in database dumps Message-ID: <20130215203347.GD12030@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 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