Re: Problem with search_path and creating objects

Поиск
Список
Период
Сортировка
От John DeSoi
Тема Re: Problem with search_path and creating objects
Дата
Msg-id BE084B4B-15F2-4FC7-9E49-DD9AF9F591CA@pgedit.com
обсуждение исходный текст
Ответ на Problem with search_path and creating objects  (Eric Raskin <eraskin@paslists.com>)
Ответы Re: Problem with search_path and creating objects  (Eric Raskin <eraskin@paslists.com>)
Список pgsql-novice
> On Aug 18, 2015, at 10:09 AM, Eric Raskin <eraskin@paslists.com> wrote:
>
> $ psql -U sbowner -d pas -h postgres
> Password for user sbowner:
> psql (9.4.4)
> Type "help" for help.
>
> pas=> show search_path;
>     search_path
> -------------------
>  "sbowner, public"
> (1 row)
>


I think the key question is where the search_path got set to "sbowner, public". If you had the default setting in
postgresql.conf:

#search_path = '"$user",public'        # schema names

It should look just like this:

pas=> show search_path;
  search_path
----------------
 "$user",public
(1 row)


Are you sure you don't have search_path attached to a user? And you have reset the one you had for the database?

Maybe try

alter database pas set search_path to default;

alter user sbowner set search_path to default;

Then logout and back in to show the search_path.


John DeSoi, Ph.D.




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

Предыдущее
От: Eric Raskin
Дата:
Сообщение: Help with search_path setting - can't create objects
Следующее
От: Eric Raskin
Дата:
Сообщение: Re: Problem with search_path and creating objects