Re: Performance issue in foreign-key-aware join estimation

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Performance issue in foreign-key-aware join estimation
Дата
Msg-id CAKJS1f8hwUK=K3TWp-CuKCsLJa=3EUq-vx+RjngVDCnmWdjE9g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Performance issue in foreign-key-aware join estimation  (Andreas Seltenreich <seltenreich@gmx.de>)
Ответы Re: Performance issue in foreign-key-aware join estimation  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
On Mon, 22 Jul 2019 at 00:44, Andreas Seltenreich <seltenreich@gmx.de> wrote:
> sqlsmith triggers an assertion in this commit (3373c7155350):
>
> TRAP: FailedAssertion("!(rel->reloptkind == RELOPT_BASEREL)", File: "equivclass.c", Line: 764)

Thanks for the report.

It looks like this is caused by the join removal code removing the
LEFT JOIN and leaving a dead rel in the eclasses ec_relids.  The fix
is likely either to adjust the Assert to allow that or to add an if
test so that we only bother calling bms_add_member for base rels.  I'm
not quite sure yet.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Compiler warnings with MinGW
Следующее
От: Tom Lane
Дата:
Сообщение: Re: POC: converting Lists into arrays