Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id E9FE4475988 for ; Thu, 25 Apr 2002 16:33:57 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g3PKXn915638; Thu, 25 Apr 2002 16:33:49 -0400 (EDT) From: Bruce Momjian Message-Id: <200204252033.g3PKXn915638@candle.pha.pa.us> Subject: Re: pg_restore and permissions In-Reply-To: <4757.1019761086@sss.pgh.pa.us> To: Tom Lane Date: Thu, 25 Apr 2002 16:33:49 -0400 (EDT) Cc: Florian Weimer , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200204/255 X-Sequence-Number: 4143 Tom Lane wrote: > Florian Weimer writes: > > Tom Lane writes: > >> SET SESSION AUTHORIZATION should have been used instead, but I doubt > >> Florian has any convenient way to re-do the dump file with that option. > > > Fortunately, I can re-do the dump (I'm eager to become a professional > > with a production and a testing machine ;-). > > Oh, in that case you can use > pg_dump -X use-set-session-authorization > > > But SET SESSION AUTHORIZATION does not seem to be available in 7.2.1, > > yet 7.1.3. > > I do not think 7.1's pg_dump had this option, but you can run 7.2's > pg_dump against the 7.1 server (in fact that is probably preferable > anyhow). > > I would like to see use-set-session-authorization become the default > before 7.3 release, but haven't got around to doing anything about it. Certainly seems like a good idea. TODO item? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026