Re: Accessing different databases in a cluster

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Naomi Walker <nwalker(at)eldocomp(dot)com>
Cc: Dave Blasby <dblasby(at)refractions(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Accessing different databases in a cluster
Date: 2001-08-01 20:50:57
Message-ID: Pine.BSF.4.21.0108011348190.7785-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 1 Aug 2001, Naomi Walker wrote:

> At 12:22 PM 8/1/01 -0700, Stephan Szabo wrote:
> >On Wed, 1 Aug 2001, Dave Blasby wrote:
> >
> > > Is it possible to access tables in one database from another database if
> > > they're in the same cluster? I dont seem to be able to do it; is there
> > > something I have to do or is it impossible?
> >
> >No, AFAIK, this isn't currently possible.
>
> Really, you cannot do a "select from" one and "insert into" another?
>
> You could probably rig it up through pipes, like a pg_dump piped to a
> pg_restore.

True, but you can't do it entirely within postgres without writing your
own functions. You could do some kind of replication, but then you'd
really only be accessing tables inside one database, just ones that were
replicated from another.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-08-01 21:19:26 Re: pltcl - lastoid
Previous Message Tom Lane 2001-08-01 20:23:11 Re: Revised Patch to allow multiple table locks in "Unison"