| От | Tom Lane |
|---|---|
| Тема | Re: search_path and current_schema |
| Дата | |
| Msg-id | 15843.1382891106@sss.pgh.pa.us обсуждение |
| Ответ на | search_path and current_schema (Jayadevan M <maymala.jayadevan@gmail.com>) |
| Ответы |
Re: search_path and current_schema
|
| Список | pgsql-general |
Jayadevan M <maymala.jayadevan@gmail.com> writes:
> I thought current_schemas and search_path will return the same set of
> schemas (except that current_schema will show pg_catalog also, if we use
> true). Shouldn't mynewschema appear in the output of select
> current_schemas(true)?
Only if it actually exists (and you have usage privilege on it). See
the description of the search_path variable: nonexistent entries are
silently ignored.
Possibly this behavior should be documented under current_schemas()
as well as under the GUC variable.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера