Re: 'prepare' is not quite schema-safe

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: 'prepare' is not quite schema-safe
Дата
Msg-id 4275AD00.90303@samurai.com
обсуждение исходный текст
Ответ на Re: 'prepare' is not quite schema-safe  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: 'prepare' is not quite schema-safe  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: 'prepare' is not quite schema-safe  (Vlad <marchenko@gmail.com>)
Re: [Dbdpg-general] Re: 'prepare' is not quite schema-safe  (David Wheeler <david@kineticode.com>)
Список pgsql-general
Tom Lane wrote:
> That's what it is supposed to do.  It would hardly be possible to
> "prepare" a query at all if we had to wait till EXECUTE to find out
> which tables it was supposed to use.

An alternative would be to flush dependent plans when the schema search
path is changed. In effect this would mean flushing *all* prepared plans
whenever the search path changes: we could perhaps keep plans that only
contain explicit namespace references, but that seems fragile.

Flushing all plans might well be a cure that is worth than the disease,
at least for a lot of users.

-Neil

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 'prepare' is not quite schema-safe
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 'prepare' is not quite schema-safe