Re: [HACKERS] [GENERAL] Remove useless joins (VARCHAR vs TEXT)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] [GENERAL] Remove useless joins (VARCHAR vs TEXT)
Дата
Msg-id 3592.1505676649@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] [GENERAL] Remove useless joins (VARCHAR vs TEXT)  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
David Rowley <david.rowley@2ndquadrant.com> writes:
> On 17 September 2017 at 08:07, Kim Rose Carlsen <krc@hiper.dk> wrote:
>> It seems there are some difference in VARCHAR vs TEXT when postgres tries to
>> decide if a LEFT JOIN is useful or not.

> Yeah, it looks like the code to check for distinctness in the subquery
> fails to consider that the join condition may contain RelabelTypes
> instead of plain Vars.
>
> The attached fixes.

Looks like a good fix to me (except for the copied-and-pasted,
not-quite-on-point comment ;-)).  Pushed.
        regards, tom lane


--
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 по дате отправления:

Предыдущее
От: Christoph Berg
Дата:
Сообщение: Re: [HACKERS] Add Roman numeral conversion to to_number
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] Log LDAP "diagnostic messages"?