Re: Possible new feature - Mailing list pgsql-general

From Alexander Staubo
Subject Re: Possible new feature
Date
Msg-id 88daf38c0707300530q7ff14c0dx9f2bd18b153cccfb@mail.gmail.com
Whole thread Raw
In response to Possible new feature  (mgould <mgould@allcoast.net>)
List pgsql-general
On 7/30/07, mgould <mgould@allcoast.net> wrote:
> I'm in the process of moving to PostGres from iAnywhere's SQL Anywhere v 10.
>  One of the neat features from ASA 10 is the ability to create "proxy
> tables"  These tables can be local or remote.

Check out the dblink contrib module that comes with PostgreSQL. It
does the exact same thing, though without special syntax:

  create view foo as
  select * from dblink(
    'host=1.2.3.4 dbname=remotedb user=dbuser password=secretpass',
    'select id, title from foo')
    as remote_foo(id int, title text);

Alexander.

pgsql-general by date:

Previous
From: Lewis Cunningham
Date:
Subject: Re: [SQL] Tunning PostgreSQL performance for views on Windows
Next
From: Henrik Zagerholm
Date:
Subject: Re: Slow query but can't see whats wrong