From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sergey Koposov <skoposov@cmu.edu>
Cc: adrian.klaver@aklaver.com <adrian.klaver@aklaver.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_dump schema in pg11 without global permissions
Date: Tue, 23 Jul 2019 19:24:27 -0400
Message-ID: <2739.1563924267@sss.pgh.pa.us> (raw)
In-Reply-To: <1563923841.29206.106.camel@cmu.edu>
References: <1563920367.29206.91.camel@cmu.edu>
<3c27ead3-134a-d27d-1097-684af2e6a811@aklaver.com>
<1563920629.29206.93.camel@cmu.edu>
<eb0004eb-e415-7320-ad6b-fc36c49c3518@aklaver.com>
<1563921764.29206.97.camel@cmu.edu>
<bde193d8-ebeb-502b-2801-e347e4557197@aklaver.com>
<1563922734.29206.103.camel@cmu.edu>
<7bc24eb3-40a7-f402-db03-3b9c00eb1751@aklaver.com>
<1563923841.29206.106.camel@cmu.edu>
[ hey guys, please trim your replies ]
Sergey Koposov <skoposov@cmu.edu> writes:
> On Tue, 2019-07-23 at 16:04 -0700, Adrian Klaver wrote:
>> That is only supposed to happen if you use -C(--create) and I am seeing
>> that in your examples.
> For some reason I see when I just have
> a command like this it doesnt' have a grant connect on database
> ~/soft/pgsql_install/bin/pg_dump -U skoposov -h localhost -n xx --no-tablespaces test1
> but when I add '-Fc' flag to pg_dump, I can see 'grant connect' inside the output (interdispersed with binary stuff)
The GRANT CONNECT will be in the archive, but pg_restore should only
print it if you specified -C.
Experimenting, however, I see that that only works as intended if
I use v11 pg_restore. I can replicate your result if I use v10
pg_restore. So ... don't do that.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, skoposov@cmu.edu, adrian.klaver@aklaver.com
Subject: Re: pg_dump schema in pg11 without global permissions
In-Reply-To: <2739.1563924267@sss.pgh.pa.us>
References: <1563920367.29206.91.camel@cmu.edu> <3c27ead3-134a-d27d-1097-684af2e6a811@aklaver.com> <1563920629.29206.93.camel@cmu.edu> <eb0004eb-e415-7320-ad6b-fc36c49c3518@aklaver.com> <1563921764.29206.97.camel@cmu.edu> <bde193d8-ebeb-502b-2801-e347e4557197@aklaver.com> <1563922734.29206.103.camel@cmu.edu> <7bc24eb3-40a7-f402-db03-3b9c00eb1751@aklaver.com> <1563923841.29206.106.camel@cmu.edu> <2739.1563924267@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