From: Ian Barwick <barwick@gmx.net>
To: Dilan Arumainathan <dilan_a@impark.com>
To: pgsql-admin@postgresql.org
Subject: Re: How can I set a default schema for a session
Date: Tue, 22 Jul 2003 23:18:58 +0200
Message-ID: <200307222318.58234.barwick@gmx.net> (raw)
In-Reply-To: <CFEJJBOGEDDKJMNKNGAPOEHHEEAA.dilan_a@impark.com>
References: <CFEJJBOGEDDKJMNKNGAPOEHHEEAA.dilan_a@impark.com>
On Tuesday 22 July 2003 22:52, 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?
SET search_path TO ...
http://www.postgresql.org/docs/7.3/static/ddl-schemas.html
You can also use
ALTER USER user_name SET search_path to ...;
to make the setting permanent.
Ian Barwick
barwick@gmx.net
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: barwick@gmx.net, dilan_a@impark.com
Subject: Re: How can I set a default schema for a session
In-Reply-To: <200307222318.58234.barwick@gmx.net>
References: <CFEJJBOGEDDKJMNKNGAPOEHHEEAA.dilan_a@impark.com> <200307222318.58234.barwick@gmx.net>
* 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