Re: schema 8.1.5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: km(at)mrna(dot)tn(dot)nic(dot)in
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: schema 8.1.5
Date: 2006-10-26 21:27:42
Message-ID: 25712.1161898062@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

km <km(at)mrna(dot)tn(dot)nic(dot)in> writes:
> how do i set a user account to default to a predefined schema ?

If you make the choice user name = schema name, this happens for free.
See
http://www.postgresql.org/docs/8.1/static/ddl-schemas.html
The bit about common usage patterns might help in particular.

> i have tried :
> SET search_path TO myschema;
> but thats temprary setting i suppose.

Doesn't have to be. See postgresql.conf and ALTER USER.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-10-26 21:29:34 Re: Effect of large text field data on queries
Previous Message Glen Parker 2006-10-26 21:14:04 Re: Effect of large text field data on queries