Re: use pg_get_functiondef() in pg_dump

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: use pg_get_functiondef() in pg_dump
Дата
Msg-id 870843.1597502211@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: use pg_get_functiondef() in pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: use pg_get_functiondef() in pg_dump  (Stephen Frost <sfrost@snowman.net>)
Re: use pg_get_functiondef() in pg_dump  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
I wrote:
> I wouldn't say that it's *fundamentally* new, but nonethless it disturbs
> me that this proposal has pg_dump assembling CREATE FUNCTION commands in
> very different ways depending on the server version.  I'd rather see us
> continuing to build the bulk of the command the same as before, and
> introduce new behavior only for deparsing the function body.

BTW, a concrete argument for doing it that way is that if you make a
backend function that does the whole CREATE-FUNCTION-building job in
exactly the way pg_dump wants it, that function is nigh useless for
any other client with slightly different requirements.  A trivial
example here is that I don't think we want to become locked into
the proposition that psql's \ef and \sf must print functions exactly
the same way that pg_dump would.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: use pg_get_functiondef() in pg_dump
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUG] Error in BRIN summarization