Re: [GENERAL] Queries across multiple databases  (was: SELECT from a table in another database). - Mailing list pgsql-hackers

From Richard Huxton
Subject Re: [GENERAL] Queries across multiple databases  (was: SELECT from a table in another database).
Date
Msg-id 004c01c0e214$ce6c4800$1001a8c0@archonet.com
Whole thread Raw
In response to Queries across multiple databases  (was: SELECTfrom a table in another database).  (Andrew Rawnsley <ronz@ravensfield.com>)
List pgsql-hackers
From: "Zak McGregor" <zak@mighty.co.za>

> On Mon, 21 May 2001 07:55:13 -0400
> Andrew Rawnsley <ronz@ravensfield.com> wrote:
>
> > If I ever come up with said schema-dropping patch, and anyone else
> wants it,
> > let me know.
>
> I'd dance a happy jig ;-)
>
> I'm not sure whether it is quite the way to do it, but I'd have a better
> time with things if I could span databases in a single request. Are
> there theoretical problems with spanning databases in a single query? Is
> it a feature of bad database design & implementation?

I think the developers are planning full schema support for the relatively
near future (possibly even 7.2, but check the archives and see what's been
said). Although it looks easy to access a table from another database,
things can rapidly become more complicated as you start having to deal with
transactions, triggers, rules, constraints...

- Richard Huxton


pgsql-hackers by date:

Previous
From: John Reid
Date:
Subject: Re: possible DOMAIN implementation
Next
From: Jan Wieck
Date:
Subject: PL/pgSQL CURSOR support