Re: "Cache lookup failed for function" when recreating procs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "Cache lookup failed for function" when recreating procs
Дата
Msg-id 21190.1173292619@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "Cache lookup failed for function" when recreating procs  ("Chris Fischer" <Chris.Fischer@channeladvisor.com>)
Список pgsql-general
"Chris Fischer" <Chris.Fischer@channeladvisor.com> writes:
> I'm attempting to write a function which produces a script.  The script
> will contain steps necessary to drop/recreate all the functions.

If you're trying to modify functions that are in live use, don't drop
them.  Just apply CREATE OR REPLACE FUNCTION.  This avoids breaking
cached plans that refer to the function(s) by OID.

            regards, tom lane

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

Предыдущее
От: "Chris Fischer"
Дата:
Сообщение: "Cache lookup failed for function" when recreating procs
Следующее
От: "Ed L."
Дата:
Сообщение: Re: invalid page header in pg_statistic