Re: [HACKERS] Discussion on missing optimizations

Поиск
Список
Период
Сортировка
От Ants Aasma
Тема Re: [HACKERS] Discussion on missing optimizations
Дата
Msg-id CA+CSw_tAwJD9MXQncwK2_4bhJ+9wN-KsoUQ2sKKwFvChxtE9WQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Discussion on missing optimizations  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Oct 8, 2017 at 7:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Petr Jelinek <petr.jelinek@2ndquadrant.com> writes:
>> Okay, that makes sense, thanks for explanation. Your patch is the way to
>> go then.
>
> Hearing no further comment, pushed.  Thanks for reviewing it.

The tautological col = col comparison on is occasionally used as a
planner "hint" to correct for row count overestimates. Not a great
solution, but PostgreSQL doesn't really have a better way to guide the
planner. Those queries will now have to do something else, like col =
col + 0, which still works.

Regards,
Ants Aasma


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Latches API on windows
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: [HACKERS] 10.0: Logical replication doesn't execute BEFORE UPDATE OF trigger