Re: Sharing data between databases

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Sharing data between databases
Date: 2011-05-12 03:08:13
Message-ID: 4DCB4F1D.4000300@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Uckun 2011-05-12 03:10:21 Re: Sharing data between databases
Previous Message Craig Ringer 2011-05-12 02:52:24 Re: invalid byte sequence for encoding "UTF8": 0xf1612220