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

From Dimitri Fontaine
Subject Re: Status of FDW pushdowns
Date
Msg-id m2iovelzd2.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: Status of FDW pushdowns  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: Status of FDW pushdowns  (Shigeru Hanada <shigeru.hanada@gmail.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> 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.

I guess what's needed here is a kind of barrier that allows pushing a
whole arbitrary subquery (with joins and quals and whatnot) down to the
remote side.

My current thinking about how to solve that would be to add a notion of
FOREIGN VIEW in our system, which would basically implement that barrier
and send the view definition on the remote, with known quals values as
constants, or something like that.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Handling GIN incomplete splits
Next
From: Kevin Grittner
Date:
Subject: Re: [GENERAL] pg_upgrade ?deficiency