Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id E7BBB4759A6 for ; Thu, 25 Apr 2002 13:20:47 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g3PHKaF03184; Thu, 25 Apr 2002 13:20:36 -0400 (EDT) To: Bruce Momjian Cc: Florian Weimer , pgsql-admin@postgresql.org Subject: Re: pg_restore and permissions In-reply-to: <200204251616.g3PGGMN24174@candle.pha.pa.us> References: <200204251616.g3PGGMN24174@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Thu, 25 Apr 2002 12:16:22 -0400" Date: Thu, 25 Apr 2002 13:20:36 -0400 Message-ID: <3181.1019755236@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200204/245 X-Sequence-Number: 4133 Bruce Momjian writes: > That should work. No, it won't because the pg_dumpall script will try to connect as each user who owns objects in the database. With ident authorization in force, the DB rejects these connection requests as falsified. 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. I do not think there is any way to restore such scripts except by temporarily suspending auth checking for local connections. (If you feel too paranoid to do that, you might consider tightening access permissions on the socket file instead.) regards, tom lane