Re: Sharing data between databases

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Sharing data between databases
Date: 2011-05-12 04:17:28
Message-ID: 4DCB5F58.3070009@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/11/11 9:04 PM, Tim Uckun wrote:
>> or carefully structure your dblink joins so they can perform efficiently,
>> > possibly using temp tables as a sort of materialized view.
> According to the documents unless you are writing procedural code with
> cursors when you touch the dblink view it will pull the entire
> table/recordset over.
>

well, the idea is, you only query the remote server for the data you
know you'll need. yeah, you can't arbitrarily do complex joins between
large tables, you want to filter as much as you can with the remote
query so the dblink only pulls across data you need. procedures might
help too.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message fhaegele 2011-05-12 06:32:15 Re: [GENERAL] postgresql-8.4 error -> BUG
Previous Message Tim Uckun 2011-05-12 04:04:41 Re: Sharing data between databases