| From: | Adam Ruth <aruth(at)intercation(dot)com> |
|---|---|
| To: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
| Cc: | PostgreSQL general list <pgsql-general(at)postgresql(dot)org>, "Roderick A(dot) Anderson" <raanders(at)acm(dot)org> |
| Subject: | Re: DBs and Schemas |
| Date: | 2004-01-06 23:52:46 |
| Message-ID: | 6D8C7B48-40A3-11D8-97E9-000A959D1424@intercation.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joshua D. Drake | 2004-01-06 23:55:01 | Re: Paypal WAS: PostgreSQL speakers needed for OSCON |
| Previous Message | Joshua D. Drake | 2004-01-06 23:51:27 | Re: Paypal WAS: PostgreSQL speakers needed for OSCON |