Re: Casts in foreign schemas

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Casts in foreign schemas
Дата
Msg-id 4764.1276008642@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Casts in foreign schemas  (Ben Morrow <ben@morrow.me.uk>)
Список pgsql-sql
Ben Morrow <ben@morrow.me.uk> writes:
> My understanding of things was that PL/pgSQL functions were compiled at
> CREATE FUNCTION time, using the SEARCH_PATH currently in effect. Is that
> wrong?

Yes.  They're compiled at first use within a given session.

If you want to lock down the search path used by a function, it's
possible to do that in recent PG versions, by annotating the function
definition with a "SET search_path = whatever" clause.
        regards, tom lane


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

Предыдущее
От: Ben Morrow
Дата:
Сообщение: Casts in foreign schemas
Следующее
От: Aaron Burnett
Дата:
Сообщение: Some insight on the proper SQL would be appreciated