Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexander Spiteri <alexander(at)spiteri(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14009: pg_restore not restoring privilegs when one login/group role is missing
Date: 2016-03-15 02:57:15
Message-ID: 27348.1458010635@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Alexander Spiteri <alexander(at)spiteri(dot)org> writes:
> I tried the command as you suggested but still had the same issue.
> [postgres(at)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2016-03-15 04:00:07 Re: BUG #14020: row_number() over(partition by order by) - weird behavior
Previous Message Tom Lane 2016-03-15 00:13:51 Re: BUG #14021: configure failing to find shared libperl