From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | dumping database privileges broken in 9.6 |
Date: | 2016-06-29 03:12:50 |
Message-ID: | 9f25cb66-df67-8d81-ed6a-d18692a03410@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Do this:
CREATE DATABASE test1;
REVOKE CONNECT ON DATABASE test1 FROM PUBLIC;
Run pg_dumpall.
In 9.5, this produces
CREATE DATABASE test1 WITH TEMPLATE = template0 OWNER = peter;
REVOKE ALL ON DATABASE test1 FROM PUBLIC;
REVOKE ALL ON DATABASE test1 FROM peter;
GRANT ALL ON DATABASE test1 TO peter;
GRANT TEMPORARY ON DATABASE test1 TO PUBLIC;
In 9.6, this produces only
CREATE DATABASE test1 WITH TEMPLATE = template0 OWNER = peter;
GRANT TEMPORARY ON DATABASE test1 TO PUBLIC;
GRANT ALL ON DATABASE test1 TO peter;
Note that the REVOKE statements are missing. This does not correctly
recreate the original state.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | M Enrique | 2016-06-29 03:17:22 | Re: Gin index on array of uuid |
Previous Message | Peter Eisentraut | 2016-06-29 02:10:34 | Re: parallel workers and client encoding |