Re: pg_restore depending on user functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_restore depending on user functions
Дата
Msg-id 2048100.1636934771@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_restore depending on user functions  (Дмитрий Иванов <firstdismay@gmail.com>)
Ответы Re: pg_restore depending on user functions
Список pgsql-general
=?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= <firstdismay@gmail.com> writes:
> вс, 14 нояб. 2021 г. в 23:46, Tom Lane <tgl@sss.pgh.pa.us>:
>> This is not "details", this is an evidence-free assertion.  Please show
>> a concrete example of problematic functions.

> Ok, I'll do it.
> [ example ]

This is pretty far from being a self-contained example; I had to guess
at the definitions of several types that you didn't provide.  Having
done so, though, the set of functions and types seem to dump and restore
just fine.  So I still don't see any problem here.

Possibly worth noting is that pg_dump is careful to include this in
its output script:

SET check_function_bodies = false;

Without that, I can believe that you'd have some trouble restoring
these functions, since pg_dump doesn't know anything about the
cross-references appearing in the function bodies.  But with that,
there don't appear to be any troublesome cross-references here.

            regards, tom lane



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

Предыдущее
От: Дмитрий Иванов
Дата:
Сообщение: Re: pg_restore depending on user functions
Следующее
От: "Chen, Yan-Jack (NSB - CN/Hangzhou)"
Дата:
Сообщение: PostgreSQL debug log doesn't record whole procedure(from receiving request to sending response)