Re: patch: move dumpUserConfig call in dumpRoles function of pg_dumpall.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: patch: move dumpUserConfig call in dumpRoles function of pg_dumpall.c
Дата
Msg-id 29963.1318263246@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: patch: move dumpUserConfig call in dumpRoles function of pg_dumpall.c  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: patch: move dumpUserConfig call in dumpRoles function of pg_dumpall.c
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I don't really
> understand why it's not OK to just have pg_dump issue RESET ROLE at
> appropriate points in the process; that seems like it would be
> sufficient and not particularly ugly.

Well, it was alleged that that would fix this problem:
http://archives.postgresql.org/pgsql-hackers/2010-12/msg00916.php
but if it does fix it, I think that's a bug in itself:
http://archives.postgresql.org/pgsql-hackers/2010-12/msg01031.php

But more to the point, I think the specific case of "ALTER DATABASE SET
ROLE" is just one element of a class of problems, namely that settings
attached to either databases or roles could create issues for restoring
a dump.  Issuing RESET ROLE would fix only that one single case.
        regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Extend file_fdw wrapper
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ALTER EXTENSION .. ADD/DROP weirdness