Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem)

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem)
Дата
Msg-id CAKJS1f9ee7MSf30i=a8REuuDkQdkeSV+WERu0VYkUQjxH9w1qw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem)  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 30 March 2018 at 15:05, Andres Freund <andres@anarazel.de> wrote:
>> + * To allow join removal to happen, we can't reference the CTID column
>> + * of an otherwise-removable relation.
>
> A brief hint why wouldn't hurt.

Maybe something like:

/*
 * Join removal is only ever possible when no columns of the
to-be-removed relation
 * are referenced.  If we added the CTID here then we could
inadvertently disable join
 * removal.  We'll need to delay adding the CTID until after join
removal takes place.
 */

(I've not read the code, just the thread)

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


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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem)
Следующее
От: Dmitry Dolgov
Дата:
Сообщение: json(b)_to_tsvector with numeric values