Re: [HACKERS] [sqlsmith] Planner crash on foreign table join

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join
Дата
Msg-id
11491.1491668863@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
[HACKERS] [sqlsmith] Planner crash on foreign table join Andreas Seltenreich <seltenreich@gmx.de>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Tom Lane <tgl@sss.pgh.pa.us>
Adding lfirst_node (was Re: [HACKERS] [sqlsmith] Planner crash on foreign table join) Tom Lane <tgl@sss.pgh.pa.us>
Re: Adding lfirst_node (was Re: [HACKERS] [sqlsmith] Planner crashon foreign table join) Andres Freund <andres@anarazel.de>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Andreas Seltenreich <seltenreich@gmx.de>
Re: [HACKERS] [sqlsmith] Planner crash on foreign table join Andres Freund <andres@anarazel.de>
Andrew Gierth  writes:
> "Andreas" == Andreas Seltenreich  writes:
>  Andreas> testing master at f0e44021df with a loopback postgres_fdw
>  Andreas> installed, I see lots of crashes on queries joining foreign
>  Andreas> tables with various expressions.  Below is a reduced recipe
>  Andreas> for the regression database and a backtrace.

> Commit ac2b095088 assumes that clauselist_selectivity is being passed a
> list of RelOptInfo, but postgres_fdw is passing it a list of bare
> clauses.  One of them is wrong :-)

It's a bit scary that apparently none of the committed regression tests
caught that.

More generally, I think the convention up to now has been that
clauselist_selectivity would work on either RestrictInfos or bare boolean
clauses, caching its results in the former case but succeeding anyway.
If we're to standardize on only one of those behaviors it should certainly
be the former, but I think postgres_fdw is probably not the only code that
will be broken if we remove the option for the latter.
		regards, tom lane


В списке pgsql-hackers по дате отправления
FAQ