Re: DBs and Schemas

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Adam Ruth <aruth(at)intercation(dot)com>
Cc: "Roderick A(dot) Anderson" <raanders(at)acm(dot)org>, PostgreSQL general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: DBs and Schemas
Date: 2004-01-06 22:27:41
Message-ID: 1073428061.25138.1591.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2004-01-06 at 22:06, Adam Ruth wrote:
> > 1. Modifying the applications to use schemas instead of connecting to
> > specific databases. Getting the authors to use schemas so I do it
> > once.
>
> One thing I'd suggest would be to modify the application to issue a
> "set search_path = yourschema;" at the beginning, then the rest of the
> application wouldn't need to change. That's what I did when I did
> something similar.

You can use ALTER DATABASE to set that up permanently, without touching
the application.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Thou shalt not avenge, nor bear any grudge against the
children of thy people, but thou shalt love thy
neighbour as thyself. I am the LORD."
Leviticus 19:18

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Roderick A. Anderson 2004-01-06 23:19:25 Re: DBs and Schemas
Previous Message Bruce Momjian 2004-01-06 22:18:59 Re: Paypal WAS: PostgreSQL speakers needed for OSCON