Improve the performance of nested loop join in the case of partitioned inner table - Mailing list pgsql-hackers

From Alexandr Nikulin
Subject Improve the performance of nested loop join in the case of partitioned inner table
Date
Msg-id CAHdr9ueefdCCCq1mXAYfLmRgEKfhWQDCU7=XmureEAzJcOwfag@mail.gmail.com
Whole thread Raw
Responses Re: Improve the performance of nested loop join in the case of partitioned inner table  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers
Hi, hackers

I propose to slightly improve the performance of nested loop join in the case of partitioned inner table.
As I see in the code, the backend looks for the partition of the inner table each time after fetch a new row from the outer table.
These searches can take a significant amount of time.
But we can skip this step if the nested loop parameter(s) was(re) not changed since the previous row fetched from the outer table

The draft patch is attached.
Attachment

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: ICU locale validation / canonicalization
Next
From: Amit Kapila
Date:
Subject: Re: Data is copied twice when specifying both child and parent table in publication