Re: How can I set a default schema for a session

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: How can I set a default schema for a session
Дата
Msg-id Pine.LNX.4.33.0307221456002.20190-100000@css120.ihs.com
обсуждение исходный текст
Ответ на How can I set a default schema for a session  ("Dilan Arumainathan" <dilan_a@impark.com>)
Список pgsql-admin
On Tue, 22 Jul 2003, Dilan Arumainathan wrote:

> Hi,
> Every time I have to specify a table name in a query I find myself prefixing
> the name of the table with the schema name as in schema.table. Is there a
> way to force the queries to look in one particular schema whenever I do not
> specify a schema name?

Just change search_path to include it:

psql
> set search_path=$user,public,mynewschema;




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

Предыдущее
От: "Marvin"
Дата:
Сообщение: Re: pg_restore problem!!!
Следующее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: pg_restore problem!!!