pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Florian Weimer <Weimer@CERT.Uni-Stuttgart.DE>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore and permissions
Date: Thu, 25 Apr 2002 13:20:36 -0400
Message-ID: <3181.1019755236@sss.pgh.pa.us> (raw)
In-Reply-To: <200204251616.g3PGGMN24174@candle.pha.pa.us>
References: <200204251616.g3PGGMN24174@candle.pha.pa.us>

Bruce Momjian <pgman@candle.pha.pa.us> 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



view thread (9+ messages)  latest in thread

Message-ID: <3181.1019755236@sss.pgh.pa.us>
Permalink:  ../3181.1019755236@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3181.1019755236@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, Weimer@CERT.Uni-Stuttgart.DE
  Subject: Re: pg_restore and permissions
  In-Reply-To: <3181.1019755236@sss.pgh.pa.us>
  References: <200204251616.g3PGGMN24174@candle.pha.pa.us> <3181.1019755236@sss.pgh.pa.us>

* 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