Re: DBs and Schemas - Mailing list pgsql-general

From Adam Ruth
Subject Re: DBs and Schemas
Date
Msg-id 6D8C7B48-40A3-11D8-97E9-000A959D1424@intercation.com
Whole thread Raw
In response to Re: DBs and Schemas  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-general
On Jan 6, 2004, at 3:27 PM, Oliver Elphick wrote:

> 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.

If you were combining several databases into one database with several
schemas, each application will use a different schema.  Thus each
application would need to specify which schema it's using when starting
up.


pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: DBs and Schemas
Next
From: "Chris Ochs"
Date:
Subject: problems with transaction blocks