Re: How can I set a default schema for a session - Mailing list pgsql-admin

From scott.marlowe
Subject Re: How can I set a default schema for a session
Date
Msg-id Pine.LNX.4.33.0307221456002.20190-100000@css120.ihs.com
Whole thread Raw
In response to How can I set a default schema for a session  ("Dilan Arumainathan" <dilan_a@impark.com>)
List 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 by date:

Previous
From: "Marvin"
Date:
Subject: Re: pg_restore problem!!!
Next
From: "Nick Fankhauser"
Date:
Subject: Re: pg_restore problem!!!