BUG #2085: pg_dump incompletely dumps ACLs

Поиск
Список
Период
Сортировка
От David Begley
Тема BUG #2085: pg_dump incompletely dumps ACLs
Дата
Msg-id 20051201172234.088A4F0B80@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #2085: pg_dump incompletely dumps ACLs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      2085
Logged by:          David Begley
Email address:      d.begley@uws.edu.au
PostgreSQL version: 8.1.0
Operating system:   Windows XP
Description:        pg_dump incompletely dumps ACLs
Details:

Running the following command:

pg_dump -v -C -f \windows\temp\dump.sql dbname

produced a plain text dump of the named database containing various
ACL-related statements (GRANT/REVOKE), but unfortunately some information
from the original running database was lost.

This means when the dump is imported to another PostgreSQL instance, the
resultant ACLs do not match those of the original instance.

The ACLs in question are those represented as "{}" (ie., nothing between the
braces);  such an ACL on a database object or language object (there may be
others affected but these are the only two I have so far confirmed) is not
properly recorded by pg_dump, but the same ACL on a function is recorded
(and recreated on the destination PostgreSQL instance) perfectly fine.

The dump generated contains no GRANT/REVOKE statements for the database
itself at all, whilst the language object includes only a REVOKE from PUBLIC
(a REVOKE from the owner is missing).  For functions, a REVOKE from both
PUBLIC and the owner are correctly included by pg_dump.

The dump was generated/recreated by a user with "superuser" access to the
database.

This may sound like a puzzling ACL, but regardless the dump should include
all information from the source database so it can be reproduced correctly
when restored.

Cheers..

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #2056: to_char no long takes time as input?
Следующее
От: "Manoj Kumar"
Дата:
Сообщение: BUG #2086: Giving error as wrong host and port when connect jdbc