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 <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: Mon, 14 Mar 2016 22:57:15 -0400
Message-ID: <27348.1458010635@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKmUXWt5xHYwE=xYBHF9AojWMOybveLKm39QRBPAO=pwSGRT+g@mail.gmail.com>
References: <20160309151510.8903.22052@wrigleys.postgresql.org>
	<20365.1457555577@sss.pgh.pa.us>
	<CAKmUXWtc+AUEPbG1NYJGM4KgChfCawLyd2yn_mO4NGrbLgBY_A@mail.gmail.com>
	<4509.1457627094@sss.pgh.pa.us>
	<CAKmUXWt5xHYwE=xYBHF9AojWMOybveLKm39QRBPAO=pwSGRT+g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alexander Spiteri <alexander@spiteri.org> writes:
> I tried the command as you suggested but still had the same issue.
> [postgres@server4 ~]$ pg_restore -p 5432 -d stgsample04
> /var/lib/pgsql/data/dumps/stgsample01_schema.dump | psql

Uh, no, you need to drop the -d switch from the pg_restore call ...
(and the -p switch is useless as well)

			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: <27348.1458010635@sss.pgh.pa.us>
Permalink:  ../27348.1458010635@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27348.1458010635@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: <27348.1458010635@sss.pgh.pa.us>
  References: <20160309151510.8903.22052@wrigleys.postgresql.org> <20365.1457555577@sss.pgh.pa.us> <CAKmUXWtc+AUEPbG1NYJGM4KgChfCawLyd2yn_mO4NGrbLgBY_A@mail.gmail.com> <4509.1457627094@sss.pgh.pa.us> <CAKmUXWt5xHYwE=xYBHF9AojWMOybveLKm39QRBPAO=pwSGRT+g@mail.gmail.com> <27348.1458010635@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