Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem) - Mailing list pgsql-hackers

From David Rowley
Subject Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem)
Date
Msg-id CAKJS1f9ee7MSf30i=a8REuuDkQdkeSV+WERu0VYkUQjxH9w1qw@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem)  (Andres Freund <andres@anarazel.de>)
List 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 by date:

Previous
From: David Rowley
Date:
Subject: Re: [HACKERS] Re: Improve OR conditions on joined columns (commonstar schema problem)
Next
From: Dmitry Dolgov
Date:
Subject: json(b)_to_tsvector with numeric values