Re: Use of search path in plpgsql functions, PG 8.3.12

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use of search path in plpgsql functions, PG 8.3.12
Дата
Msg-id 12963.1290700455@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Use of search path in plpgsql functions, PG 8.3.12  (Troy Rasiah <troyr@vicnet.net.au>)
Список pgsql-general
Troy Rasiah <troyr@vicnet.net.au> writes:
> If i set the search path to schema1,public the function still returns
> rows from the events table in the public schema.

What's probably happening is that plpgsql caches the execution plan for
the SELECT during the first execution of the function in any given
session.  The only really reliable way around that is to use EXECUTE
instead of an in-line statement.

            regards, tom lane

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

Предыдущее
От: Matthew Walden
Дата:
Сообщение: Re: Postgres 9.01 and WAL files issue
Следующее
От: "Kevin & Jessica Hermansen"
Дата:
Сообщение: Dear Friends: a 123h