pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: alexander@spiteri.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing
Date: Wed, 09 Mar 2016 15:32:57 -0500
Message-ID: <20365.1457555577@sss.pgh.pa.us> (raw)
In-Reply-To: <20160309151510.8903.22052@wrigleys.postgresql.org>
References: <20160309151510.8903.22052@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

alexander@spiteri.org writes:
> I have just installed a new instance of postgres 9.5.1 and have an issue
> with restoring the database, specifically privilges of the login/group
> roles.

> In the past I was working with postgres 8.4 and when I took a backup from
> the live server to the testing server pg_restore would grant all privilages
> to login/group roles which existed on the testing server and give an error
> for those that do not exist.

> On the new 9.5.1 server when I try to restore a database, if one login/group
> role does not exist pg_restore gives an error about it and then does not
> grant any rights to all the other login/group roles that do exist. No errors
> / notices are issued about the grants that are not applied.

That's fairly hard to believe.  Can you provide a self-contained test
case?

			regards, tom lane


-- 
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 (8+ messages)  latest in thread

Message-ID: <20365.1457555577@sss.pgh.pa.us>
Permalink:  ../20365.1457555577@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20365.1457555577@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alexander@spiteri.org
  Subject: Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing
  In-Reply-To: <20365.1457555577@sss.pgh.pa.us>
  References: <20160309151510.8903.22052@wrigleys.postgresql.org> <20365.1457555577@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