From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: postgres_fdw: Push down FULL JOINs with restriction clauses. |
Date: | 2017-03-16 17:35:07 |
Message-ID: | E1coZIp-0003uy-7d@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
postgres_fdw: Push down FULL JOINs with restriction clauses.
The previous deparsing logic wasn't smart enough to produce subqueries
when deparsing; make it smart enough to do that. However, we only do
it that way when necessary, because it generates more complicated SQL
which will be harder for any humans reading the queries to understand.
Etsuro Fujita, reviewed by Ashutosh Bapat
Discussion: http://postgr.es/m/c449261a-b033-dc02-9254-2fe5b7044795@lab.ntt.co.jp
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b30fb56b07a885f3476fe05920249f4832ca8da5
Modified Files
--------------
contrib/postgres_fdw/deparse.c | 272 +++++++++++++++++++++++--
contrib/postgres_fdw/expected/postgres_fdw.out | 160 +++++++++++++--
contrib/postgres_fdw/postgres_fdw.c | 67 +++++-
contrib/postgres_fdw/postgres_fdw.h | 16 +-
contrib/postgres_fdw/sql/postgres_fdw.sql | 23 +++
5 files changed, 498 insertions(+), 40 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-03-16 19:05:07 | pgsql: Add pg_ls_logdir() and pg_ls_waldir() functions. |
Previous Message | Alvaro Herrera | 2017-03-16 15:56:24 | Re: [COMMITTERS] pgsql: Remove objname/objargs split for referring to objects |