Re: Is it possible for postgres_fdw to push down queries on co-located tables?

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: Jinhua Luo <luajit(dot)io(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Is it possible for postgres_fdw to push down queries on co-located tables?
Date: 2018-09-18 16:10:16
Message-ID: CAFiTN-u5ygUot+kKRx8X7QjjO4QBG0oH4-HPcRUfFWoVyXrP3A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Sep 18, 2018 at 7:50 PM, Jinhua Luo <luajit(dot)io(at)gmail(dot)com> wrote:
> I was testing PG10.
>
> Sorry, the example is not so proper. I just think even if it's a
> simple example, e.g. join two co-located tables, the planner should
> work out to push down it. Can you confirm the postgresql could detect
> co-located tables on the same foreign server and push down queries on
> them? Could you give an actual example or point out the relevant
> source code paths for reference?
>

You can check "postgresGetForeignJoinPaths" function or you can refer
commit "e4106b2528727c4b48639c0e12bf2f70a766b910".

--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonathan S. Katz 2018-09-18 16:15:45 Re: PostgreSQL 11 {Beta 4, RC1} Release: 2018-09-20
Previous Message Ashutosh Bapat 2018-09-18 16:09:00 Re: Is it really difficult for postgres_fdw to implement READ COMMITTED isolation?