Re: Parallel safety tagging of extension functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Parallel safety tagging of extension functions
Дата
Msg-id 30592.1464020552@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Parallel safety tagging of extension functions  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: Parallel safety tagging of extension functions  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> On Sat, May 21, 2016 at 6:16 PM, Andreas Karlsson <andreas@proxel.se> wrote:
>> My immediate thought is first doing an UPDATE of pg_proc and then updating
>> the catcache with CREATE OR REPLACE with the new arguments. Does that work?
>> Is there a less ugly way to accomplish this?

> Isn't it better to just drop and recreate the function? pageinspect
> did so for example for heap_page_items in 1.4 to update its OUT
> arguments.

You'd have to alter the index opfamily to disconnect the function from it,
drop/recreate the function, then re-add it to the opfamily.  Kind of icky,
but probably better than the alternatives.
        regards, tom lane



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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Inheritance
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [sqlsmith] PANIC: failed to add BRIN tuple