From: scott.marlowe <scott.marlowe@ihs.com>
To: Dilan Arumainathan <dilan_a@impark.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: How can I set a default schema for a session
Date: Tue, 22 Jul 2003 14:56:34 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0307221456002.20190-100000@css120.ihs.com> (raw)
In-Reply-To: <CFEJJBOGEDDKJMNKNGAPOEHHEEAA.dilan_a@impark.com>
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;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@ihs.com, dilan_a@impark.com
Subject: Re: How can I set a default schema for a session
In-Reply-To: <Pine.LNX.4.33.0307221456002.20190-100000@css120.ihs.com>
References: <CFEJJBOGEDDKJMNKNGAPOEHHEEAA.dilan_a@impark.com> <Pine.LNX.4.33.0307221456002.20190-100000@css120.ihs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox