Re: [COMMITTERS] pgsql: In pg_dump, include pg_catalog and extension ACLs, if changed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [COMMITTERS] pgsql: In pg_dump, include pg_catalog and extension ACLs, if changed
Date: 2016-04-07 17:30:31
Message-ID: 8985.1460050231@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Stephen Frost <sfrost(at)snowman(dot)net> 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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2016-04-07 17:38:24 Re: [COMMITTERS] pgsql: In pg_dump, include pg_catalog and extension ACLs, if changed
Previous Message Tom Lane 2016-04-07 17:12:42 pgsql: Refactor join_is_removable() to separate out distinctness-provin

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2016-04-07 17:38:24 Re: [COMMITTERS] pgsql: In pg_dump, include pg_catalog and extension ACLs, if changed
Previous Message Peter Geoghegan 2016-04-07 17:17:19 Re: Using quicksort for every external sort run