Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEZDs-0006kV-7o for pgsql-general@arkaria.postgresql.org; Tue, 14 Nov 2017 11:17:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eEZDr-0000eN-RZ for pgsql-general@arkaria.postgresql.org; Tue, 14 Nov 2017 11:17:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eEZDq-0000ce-FO for pgsql-general@postgresql.org; Tue, 14 Nov 2017 11:17:42 +0000 Received: from exsmtp-gw03.mailcloud.dk ([193.239.98.176]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eEZDh-0004Vp-2y for pgsql-general@postgresql.org; Tue, 14 Nov 2017 11:17:39 +0000 Received: from localhost (localhost [127.0.0.1]) by exsmtp-gw03.mailcloud.dk (Postfix) with ESMTP id EB7535FD06 for ; Tue, 14 Nov 2017 12:17:31 +0100 (CET) Received: from exsmtp-gw03.mailcloud.dk ([127.0.0.1]) by localhost (exsmtp-gw03.mailcloud.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ou0UYQbGvcVp for ; Tue, 14 Nov 2017 12:17:30 +0100 (CET) Received: from smtp.mailcloud.dk (exhub01.mailcloud.dk [193.239.98.160]) by exsmtp-gw03.mailcloud.dk (Postfix) with ESMTPS id CFBF760491 for ; Tue, 14 Nov 2017 12:17:30 +0100 (CET) Received: from EXMBX05.mailcloud.dk ([169.254.4.69]) by EXHUB01.mailcloud.dk ([10.2.6.2]) with mapi id 14.03.0235.001; Tue, 14 Nov 2017 12:17:30 +0100 From: =?iso-8859-1?Q?Bo_Thorbj=F8rn_Jensen?= To: "pgsql-general@postgresql.org" Subject: Re: missing public on schema public Thread-Topic: [GENERAL] missing public on schema public Thread-Index: AdNdOikLG8wpZT89Siqr9Eo/EFn1yw== Date: Tue, 14 Nov 2017 11:17:29 +0000 Message-ID: Accept-Language: da-DK, en-US Content-Language: da-DK X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [193.239.98.140] Content-Type: multipart/alternative; boundary="_000_AD7252BEFBCA3846A8D34ABCDA258D080120F025C6EXMBX05mailcl_" MIME-Version: 1.0 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org --_000_AD7252BEFBCA3846A8D34ABCDA258D080120F025C6EXMBX05mailcl_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have some additional info and a fix. Firstly steps to reproduce: 1. create database: CREATE DATABASE test WITH ENCODING=3D'UTF8' OWNER=3Dpostgres CONNECTION LIM= IT=3D-1; -- here public has access to public 2. dump: pg_dump -f testfile.dump -F c -h localhost -U postgres test 3. restore: pg_restore -c -d testfile.dump -h localhost -U postgres test -- here public no longer has access to schema public It is easily fixable with: GRANT ALL ON SCHEMA public TO public; And the issue goes away.. (privilege stays after next dump/restore) So. What am I missing? Is this intentional functionality ? Kind regards and again thank you for your time Bo Thorbj=F8rn Jensen --_000_AD7252BEFBCA3846A8D34ABCDA258D080120F025C6EXMBX05mailcl_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I have some additional info and= a fix.

 

Firstly steps to reproduce:

 

1.  create database:

CREATE DATABASE test WITH ENCODING=3D'UTF8' OWNER=3Dpostgres CONNECTION = LIMIT=3D-1;

-- here public has access to public

 

2. dump:

pg_dump -f testfile.dump -F c -h localhost -U postgres test

 

3. restore:

pg_restore -c -d testfile.dump -h localhost -U postgres test<= /span>

-- here public no longer has access to schema public

 

It is easily fixable with:

GRANT ALL ON SCHEMA public TO public;

 

And the issue goes away.. (privilege stays after next dump/restore)=

 

So. What am I missing?

Is this intentional functionality ?

 

Kind regards and again thank you for your time

 

Bo Thorbj=F8rn Jensen

--_000_AD7252BEFBCA3846A8D34ABCDA258D080120F025C6EXMBX05mailcl_--