Re: [HACKERS] postgres_fdw bug in 9.6

Поиск
Список
Период
Сортировка
Искать
От
Etsuro Fujita
Тема
Re: [HACKERS] postgres_fdw bug in 9.6
Дата
Msg-id
f2684b07-b2e2-155b-b1e8-e141e89458b5@lab.ntt.co.jp
Ответ на
Список
Дерево обсуждения
postgres_fdw bug in 9.6 Jeff Janes <jeff.janes@gmail.com>
Re: postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 David Steele <david@pgmasters.net>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: postgres_fdw bug in 9.6 Jeff Janes <jeff.janes@gmail.com>
Re: postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Ryan Murphy <ryanfmurphy@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Ryan Murphy <ryanfmurphy@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 David Steele <david@pgmasters.net>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Jeff Janes <jeff.janes@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Re: [HACKERS] postgres_fdw bug in 9.6 Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: [HACKERS] postgres_fdw bug in 9.6 Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
On 2016/12/16 11:25, Etsuro Fujita wrote:
> As I said upthread, an alternative I am thinking is (1) to create an
> equivalent nestloop join path using inner/outer paths of a foreign join
> path, except when that join path implements a full join, in which case a
> merge/hash join path is used, (2) store it in fdw_outerpath as-is, and
> (3) during an EPQ recheck, apply postgresRecheckForeignScan to the outer
> subplan created from the fdw_outerpath as-is.  What do you think about
> that?

Let me explain about #1 and #2 a bit more.  What I have in mind is:

* modify postgresGetForeignPaths so that a simple foreign table scan 
path is stored into the base relation's PgFdwRelationInfo.
* modify postgresGetForeignJoinPaths so that    (a) a local join path for a 2-way foreign join is created using 
simple foreign table scan paths stored in the base relations' 
PgFdwRelationInfos, and stored into the join relation's PgFdwRelationInfo.    (b) a local join path for a 3-way foreign join, whose left input is 
a 2-way foreign join, is created using a local join path stored in the 
left input join relation's PgFdwRelationInfo and a simple foreign table 
scan path stored into the right input base relation's PgFdwRelationInfo.    (c) Likewise for higher level foreign joins.    (d) local join paths created are passed to create_foreignscan_path 
and stored into the fdw_outerpaths of the resulting ForeignPahts.

I think that that would need special handling for foreign joins with 
sort orders; add an explicit sort to the local join paths, if needed.

I am thinking to provide a helper function that creates a local join 
path for (a), (b), and (c).

Best regards,
Etsuro Fujita




В списке pgsql-hackers по дате отправления
От: Petr Jelinek
Дата:
От: Fujii Masao
Дата:
FAQ