Re: truncate_useless_pathkeys() doesn't account for window function queries - Mailing list pgsql-hackers

From David Rowley
Subject Re: truncate_useless_pathkeys() doesn't account for window function queries
Date
Msg-id CAApHDvrL6soDvSy-nSAN=2MpHC3JajzYkb+mECEt30f_Yehebw@mail.gmail.com
Whole thread Raw
In response to truncate_useless_pathkeys() doesn't account for window function queries  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers
On Mon, 6 Oct 2025 at 16:42, David Rowley <dgrowleyml@gmail.com> wrote:
> Looking at truncate_useless_pathkeys(), it tries to be fairly liberal
> and not truncate anything that might be useful for various operations
> that require sorted Paths. However, it's not quite liberal enough to
> consider WindowClause sort orders.

I suspect there are not going to be many arguments against fixing
this, so I've gone ahead and pushed it to master.

David



pgsql-hackers by date:

Previous
From: Jeremy Schneider
Date:
Subject: Re: another autovacuum scheduling thread
Next
From: David Rowley
Date:
Subject: Re: another autovacuum scheduling thread