Re: Sharing data between databases - Mailing list pgsql-general

From John R Pierce
Subject Re: Sharing data between databases
Date
Msg-id 4DCCAE23.2080601@hogranch.com
Whole thread Raw
In response to Re: Sharing data between databases  (Tim Uckun <timuckun@gmail.com>)
List pgsql-general
On 05/12/11 8:38 PM, Tim Uckun wrote:
>> I sometimes think it'd be nice if Pg offered the ability to translate schema
>> to "databases", so it runs with a single database and multiple schema, and
>> you "connect" to a schema, MySQL style. It'd help people who want to use
>> multiple databases on a machine and query between them, though of course
>> it'd do nothing for people who want to do inter-machine or inter-instance
>> queries.
>>
>
> That's an interesting idea. Since I am building this app from scratch
> I suppose I could create different schemas for different applications
> instead of using different databases. I wonder how rails and active
> record can deal with that. I'll take a look and see.
>
> I am presuming of course that one can query across schemas.

most certainly.     just prefix any objects or fields with
schemaname.objectname.  if you don't specify the schemaname it looks in
the SEARCH_PATH, which defaults to "$user",public







pgsql-general by date:

Previous
From: Tim Uckun
Date:
Subject: Re: Sharing data between databases
Next
From: Craig Ringer
Date:
Subject: Re: Sharing data between databases