Re: search_path for PL/pgSQL functions partially cached?

Поиск
Список
Период
Сортировка
От Isaac Morland
Тема Re: search_path for PL/pgSQL functions partially cached?
Дата
Msg-id CAMsGm5fVJzOZ6kNDwkiRuFZFW=cY=FZixaSOd=WRdP0QLdoqew@mail.gmail.com
обсуждение исходный текст
Ответ на Re: search_path for PL/pgSQL functions partially cached?  (Jan Behrens <jbe-mlist@magnetkern.de>)
Ответы Re: search_path for PL/pgSQL functions partially cached?
Список pgsql-general
On Fri, 3 Jan 2025 at 18:22, Jan Behrens <jbe-mlist@magnetkern.de> wrote:
 
Instead, I plan to expect the function to receive a query string that
will get the data that is being processed by the function.

That query string should be allowed to refer to tables in the
search_path at the caller's side.

Therefore, I cannot use the "SET search_path FROM CURRENT" in my
"CREATE FUNCTION" statement, because it would overwrite the current
search_path on each call of the function.

 I wonder if it would help if EXECUTE took an optional search_path to use while executing the query.

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