Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing
Date
Msg-id 27348.1458010635@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing  (Alexander Spiteri <alexander@spiteri.org>)
Responses Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing  (Alexander Spiteri <alexander@spiteri.org>)
List pgsql-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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #14021: configure failing to find shared libperl
Next
From: b.yordanov2@gmail.com
Date:
Subject: BUG #14020: row_number() over(partition by order by) - weird behavior