Re: The missing pg_get_*def functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: The missing pg_get_*def functions
Дата
Msg-id 15682.1367279903@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: The missing pg_get_*def functions  (Noah Misch <noah@leadboat.com>)
Ответы Re: The missing pg_get_*def functions  (Robert Haas <robertmhaas@gmail.com>)
Re: The missing pg_get_*def functions  (Joel Jacobson <joel@trustly.com>)
Re: The missing pg_get_*def functions  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Noah Misch <noah@leadboat.com> writes:
> Note also that minor releases can readily fix bugs in C-language functions,
> but we have no infrastructure to update sql-language functions after initdb.
> That flexibility is unfortunate to lose, particularly for something that
> pg_dump depends on.

That alone would probably be sufficient reason why we would never allow
pg_dump to depend on any such thing (not that I see a compelling
argument for it to do so anyway...).

The long and the short of it here is that there isn't any very good
reason to migrate any of the existing pg_dump-side functionality into
server-side functions, and especially not server-side functions that
aren't in C.  One of the things that we frequently recommend when doing
upgrades is that you do the dump with the newer version's pg_dump, so
as to get the benefits of any bug fixes that are in it.  The more
dump functionality is on the server side, the less opportunity we have
to repair things that way.

It may be that the functions Joel proposes are worth having for other
tools to use, but I'm not in favor of making pg_dump use them.
        regards, tom lane



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

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: The missing pg_get_*def functions
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: ALTER DEFAULT PRIVILEGES FOR ROLE is broken