Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoDlN-00087H-Ax for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Apr 2016 17:30:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aoDlM-0002cp-Qt for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Apr 2016 17:30:36 +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 1aoDlM-0002cg-9h for pgsql-hackers@postgreSQL.org; Thu, 07 Apr 2016 17:30:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aoDlJ-0006rb-3R for pgsql-hackers@postgreSQL.org; Thu, 07 Apr 2016 17:30:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u37HUVJt008986; Thu, 7 Apr 2016 13:30:31 -0400 From: Tom Lane To: Stephen Frost cc: pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: In pg_dump, include pg_catalog and extension ACLs, if changed In-reply-to: References: Comments: In-reply-to Stephen Frost message dated "Thu, 07 Apr 2016 01:45:51 -0000" Date: Thu, 07 Apr 2016 13:30:31 -0400 Message-ID: <8985.1460050231@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stephen Frost writes: > In pg_dump, include pg_catalog and extension ACLs, if changed This patch added a regression test step that creates some roles and doesn't drop them again. This is unacceptable, because (1) it breaks the ability to do "make installcheck" more than once. (2) it leaves roles lying around in a production installation, if installcheck is used there. And it doesn't even adhere to the convention we've agreed to about naming test roles regress_something. OK, it's not as dangerously broken that way as rowsecurity.sql, which is (still) creating roles named "alice" and "bob", but it's not acceptable like this. It'd be possible to fix (1) by adding "drop if exists", but I think the whole thing is wrongheaded due to (2). Perhaps the needs of the test could be met by granting/revoking some rights explicitly to current_user (ie, the test superuser)? That wouldn't have any real effects on a superuser, but it would provide some grist for testing the behavior. Or you could test this behavior in some other setting than the core regression tests; perhaps in a TAP test for pg_dump. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers