| От | Tom Lane |
|---|---|
| Тема | Re: Schema-qualify function calls in information_schema |
| Дата | |
| Msg-id | 11960.1513791271@sss.pgh.pa.us обсуждение |
| Ответ на | Schema-qualify function calls in information_schema (David Fetter <david@fetter.org>) |
| Список | pgsql-hackers |
David Fetter <david@fetter.org> writes:
> Please find attached a patch against master to do $Subject, which
> tones down the hilarity, at least in information_schema.
The views do not need this sort of change, because they're parsed
only once during initdb.
The bodies of functions in information_schema do need qualification,
but I think they've already got it, or at least I remember having
looked through them for the issue in the past.
> Another way to fix this, which I know will be controversial, is simply
> to mandate that pg_catalog (and possibly information_schema) be
> non-changeably first in the search_path.
I think that ship sailed long ago. It might be workable to attach
"SET search_path" clauses to the functions, if you want to make them
more bulletproof.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера