Re: BUG #16195: current_schema always return "public"

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #16195: current_schema always return "public"
Дата
Msg-id 20200109041521.GH2251@paquier.xyz
обсуждение исходный текст
Ответ на BUG #16195: current_schema always return "public"  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
On Tue, Jan 07, 2020 at 04:06:05PM +0000, PG Bug reporting form wrote:
> Context:
> user "test" and schema "test" created on my DB.
>
> Connencted as test user on my DB:
> SHOW search_path -> "$user", public
> SELECT current_schema -> public
>
> Expectation -> SELECT current_schema -> test

With a database role named test:
=# show search_path ;
   search_path
-----------------
 "$user", public
(1 row)
=# select current_schema();
 current_schema
----------------
 public
(1 row)
=# create schema test;
CREATE SCHEMA
=# select current_schema();
 current_schema
----------------
 test
(1 row)

So your expectation is right, but not your test.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: REINDEX CONCURRENTLY unexpectedly fails
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: libpq parameter parsing problem