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

From Craig Ringer
Subject Re: Sharing data between databases
Date
Msg-id 4DCB4F1D.4000300@postnewspapers.com.au
Whole thread Raw
In response to Sharing data between databases  (Tim Uckun <timuckun@gmail.com>)
Responses Re: Sharing data between databases
List pgsql-general
On 05/12/2011 08:48 AM, Tim Uckun wrote:
> What is the preferred way to share tables between databases?
>
> I read about dblink but it doesn't seem optimal because it needs to
> pull in the entire query every time the view is referenced so it might
> be highly inefficient if I am trying to join a dblinked table with a
> "local" table.

There isn't a good one for PostgreSQL, really.

Most people use replication tools like slony, londiste or bucardo to
replicate shared tables between databases, so each has a copy.

SQL/MED may improve the situation - at some point, possibly.

--
Craig Ringer

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: invalid byte sequence for encoding "UTF8": 0xf1612220
Next
From: Tim Uckun
Date:
Subject: Re: Sharing data between databases