Re: Unnecessary calculations in Execproject

From: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Cc: 赵庭海(庭章) <zhaotinghai(dot)zth(at)alibaba-inc(dot)com>
Subject: Re: Unnecessary calculations in Execproject
Date: 2025-09-19 13:58:39
Message-ID: CAJ7c6TMmUKkSjC21ZFLnJg9nuMMo-S1VdhNHPJ0wu0NtYV50qA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Zhao,

Thanks for sharing.

> I hacked some of the code into my extension to skip these unnecessary operations,
> and the performance will improve by 2%~5%. Then I think that if there is a way
> to remove the nodes corresponding to these redundant operations in the targetlist
> when initializing the execute node, this performance optimization will be applicable
> widely. If this idea can be approved, I can try to write a patch for it.

Sounds like a promising area of research / improvement. If it improves
performance for certain queries and doesn't cause any performance
degradation for others, I don't see why it wouldn't be approved.
Unfortunately it's hard to tell more without any specific patch on
hands.

--
Best regards,
Aleksander Alekseev

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Sharma 2025-09-19 13:59:35 Re: Clear logical slot's 'synced' flag on promotion of standby
Previous Message Andres Freund 2025-09-19 13:17:35 Re: MinGW cross compilation failure on Debian trixie