Re: Bogus EPQ plan construction in postgres_fdw

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Bogus EPQ plan construction in postgres_fdw
Дата
Msg-id CA+TgmoYp0hqiW=EK+=T+u37AQn=qB-kknoO+n4xkuT9C1x4ukA@mail.gmail.com
обсуждение исходный текст
Ответ на Bogus EPQ plan construction in postgres_fdw  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Dec 12, 2018 at 8:00 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> By chance I noticed that postgres_fdw's postgresGetForeignPlan() assumes
> --- without any checking --- that the outer_plan it's given for a join
> relation must have a NestLoop, MergeJoin, or HashJoin node at the top.
> That's been wrong at least since commit 4bbf6edfb (which could cause
> insertion of a Sort node on top) and it seems like a pretty unsafe
> thing to Just Assume even without that.

Thanks for taking care of this.  I've looked at this code any number
of times and never quite noticed the assumption that outer_plan had to
be a join.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: John Naylor
Дата:
Сообщение: Re: Speeding up text_position_next with multibyte encodings
Следующее
От: Robert Haas
Дата:
Сообщение: Re: 'infinity'::Interval should be added