Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cch6K-0003k5-92 for pgsql-general@arkaria.postgresql.org; Sat, 11 Feb 2017 23:29:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cch6J-0007wC-9x for pgsql-general@arkaria.postgresql.org; Sat, 11 Feb 2017 23:29:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cch6I-0007vU-6H for pgsql-general@postgresql.org; Sat, 11 Feb 2017 23:29:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cch6F-0004kz-QL for pgsql-general@postgresql.org; Sat, 11 Feb 2017 23:29:04 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v1BNSuGg024136; Sat, 11 Feb 2017 18:28:57 -0500 From: Tom Lane To: Stephen Frost cc: Frank van Vugt , pgsql-general@postgresql.org Subject: Re: intentional or oversight? pg_dump -c does not restore default priviliges on schema public In-reply-to: <20170211220617.GG9812@tamriel.snowman.net> References: <3534542.o3cNaKiDID@techfox> <20170211220617.GG9812@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Sat, 11 Feb 2017 17:06:17 -0500" Date: Sat, 11 Feb 2017 15:28:55 -0800 Message-ID: <3026.1486855735@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Stephen Frost writes: > I'm not seeing a very simple answer for this, unfortunately. I'm inclined to argue that it was a mistake to include any non-pinned objects in pg_init_privs. The reason initdb leaves some objects unpinned is exactly because they can be dropped and recreated, and that means that their "initial" privileges are not static system properties. We might need to fix pg_dump too, but I think these entries in pg_init_privs should simply not be there. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general