Re: Status of FDW pushdowns - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Status of FDW pushdowns
Date
Msg-id 20131127132934.GA5778@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: Status of FDW pushdowns  (Shigeru Hanada <shigeru.hanada@gmail.com>)
Responses Re: Status of FDW pushdowns
Re: Status of FDW pushdowns
List pgsql-hackers
Shigeru Hanada escribió:

> SQL/MED standard doesn't say much about PASS THROUGH mode, especially
> about interaction between client.  Besides it, I think it would be
> nice to allow arbitrary FDW as backend of dblink interface like this:
> 
> postgres=> SELECT dblink_connect('con1', 'server name of an FDW');
> postgres=> SELECT * FROM dblink('con1', 'some query written in remote
> syntax') as t(/* record type definition */...);
> 
> This provides a way to execute query without defining foreign table.

Seems to me that if you want to read remote tables without creating a
foreign table, you could define them locally using something like the
WITH syntax and then use them normally in the rest of the query.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Incomplete freezing when truncating a relation during vacuum
Next
From: Greg Stark
Date:
Subject: Re: Traffic jams in fn_extra