Re: Data corruption/loss when altering tables (fwd)

Поиск
Список
Период
Сортировка
От Nicola Pero
Тема Re: Data corruption/loss when altering tables (fwd)
Дата
Msg-id Pine.LNX.4.61.0411222129340.25543@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Data corruption/loss when altering tables (fwd)  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-bugs
>> Is there a way to explictly flush cached plans ?  Is there a way to
>> prevent the caching of the plan in the stored procedure ?
>
> You can prevent plan caching in PL/pgSQL by using EXECUTE.  See the
> "Executing Dynamic Commands" section in the PL/pgSQL chapter of the
> documentation.

Thanks!  I suppose that (rewriting all PL/pgSQL stored procedures which
might use tables which could be modified to do an EXECUTE instead of a
plain query) will do.

Thanks everyone for your help! :-)


NB: I'd recommend writing a large 'warning' somewhere in the PL/pgsql doc
about this because loosing data is really scary

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

Предыдущее
От: Nicola Pero
Дата:
Сообщение: Data corruption/loss when altering tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Data corruption/loss when altering tables (fwd)