![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This means when the dump is imported to another PostgreSQL instance, the resultant ACLs do not match those of the original instance. |
#3
| |||
| |||
|
|
"David Begley" <d.begley (AT) uws (DOT) edu.au> writes: This means when the dump is imported to another PostgreSQL instance, the resultant ACLs do not match those of the original instance. Please provide a concrete test case, not handwaving. |
#4
| |||
| |||
|
|
Earlier today, Tom Lane wrote: Please provide a concrete test case, not handwaving. C:\Program Files\PostgreSQL\8.1\bin>createdb concrete "Test Case" CREATE DATABASE COMMENT C:\Program Files\PostgreSQL\8.1\bin>psql -q concrete concrete=# REVOKE ALL ON DATABASE concrete FROM PUBLIC; concrete=# REVOKE ALL ON DATABASE concrete FROM david; concrete=# SELECT datacl FROM pg_database WHERE datname = 'concrete'; datacl -------- {} (1 row) concrete=# \q C:\Program Files\PostgreSQL\8.1\bin>pg_dump -C -f \windows\temp\dump.sql concrete |
#5
| |||
| |||
|
|
Given that -C overlaps pg_dumpall functionality anyway, maybe it should dump GRANT/REVOKE commands for the database too? Any thoughts pro or con out there? |
#6
| |||
| |||
|
|
Tom Lane wrote: Given that -C overlaps pg_dumpall functionality anyway, maybe it should dump GRANT/REVOKE commands for the database too? Any thoughts pro or con out there? |
|
I agree. Why have only half a funcionality if we can have the whole thing? Maybe we can take that part of of pg_dumpall if at all possible, and make it use pg_dump's. |
|
Does pg_dump -C include the database comment already? If not, maybe it's worth to add it as well. |
#7
| |||
| |||
|
|
I have verified that _no_ GRANT/REVOKE commands are dumped for the database, and only some GRANT/REVOKE commands are dumped for "language" objects (see below); |
#8
| |||
| |||
|
|
The latter is not really a bug. Languages don't currently have owners (ie there is no owner column in pg_language). For ACL-munging purposes |
|
and the privileges aren't going to be enforced against him anyway. So the fact that pg_dump doesn't process that part of the ACL isn't very meaningful. |
![]() |
| Thread Tools | |
| Display Modes | |
| |