Re: truncate_useless_pathkeys() doesn't account for window function queries

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: truncate_useless_pathkeys() doesn't account for window function queries
Date: 2025-10-08 23:41:01
Message-ID: CAApHDvrL6soDvSy-nSAN=2MpHC3JajzYkb+mECEt30f_Yehebw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 6 Oct 2025 at 16:42, David Rowley <dgrowleyml(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2025-10-08 23:59:23 Re: another autovacuum scheduling thread
Previous Message Jeremy Schneider 2025-10-08 23:40:57 Re: another autovacuum scheduling thread