Correction of RowMark Removal During Sel-Join Elimination - Mailing list pgsql-hackers

From Andrei Lepikhov
Subject Correction of RowMark Removal During Sel-Join Elimination
Date
Msg-id 18c6bd6c-6d2a-419a-b0da-dfedef34b585@gmail.com
Whole thread Raw
List pgsql-hackers
Hi,

I've noticed that the code for sel-join elimination incorrectly removes 
RowMarks. Currently, this doesn't lead to any issues because the 
optimiser retains pointers to the simple_rte_array. A RowMark refers to 
an RTE entry that is the same for both the relations being kept and 
those being removed.

I believe it would be beneficial to address this issue now to prevent 
potential problems in the future. See the patch attached.

-- 
regards, Andrei Lepikhov

Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Assertion failure in pgbench
Next
From: Andrew Dunstan
Date:
Subject: Re: Add support for specifying tables in pg_createsubscriber.