Re: BUG #2085: pg_dump incompletely dumps ACLs
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #2085: pg_dump incompletely dumps ACLs |
| Дата | |
| Msg-id | 3140.1133539430@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #2085: pg_dump incompletely dumps ACLs (David J N Begley <d.begley@uws.edu.au>) |
| Ответы |
Re: BUG #2085: pg_dump incompletely dumps ACLs
|
| Список | pgsql-bugs |
David J N Begley <d.begley@uws.edu.au> writes:
> 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
Database ACLs are dumped by pg_dumpall, not pg_dump. I agree this is a
bit inconsistent considering that pg_dump has a -C option, but the -C
option has always been pretty poorly thought out :-(.
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?
regards, tom lane
В списке pgsql-bugs по дате отправления: