Re: [PATCH] Remove unused PageIsPredicateLocked()

From: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, solai v <solai(dot)cdac(at)gmail(dot)com>
Subject: Re: [PATCH] Remove unused PageIsPredicateLocked()
Date: 2026-10-23 13:42:38
Message-ID: CAJ7c6TN1iDFAJbhKbTpwbwOwu66JYW70NHtyqGtSmwa=i+T7sg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Thanks for the attention to the patch.

> > The patch looks good to me as well. Barring any objections, I will
> > commit it.
>
> BTW, while removing PageIsPredicateLocked(), I found that the
> "INTERFACE ROUTINES" comment in predicate.c is outdated. For example,
> it lists RegisterPredicateLockingXid(void), although the function takes
> a TransactionId, and omits functions such as
> CheckForSerializableConflictOutNeeded() and ShareSerializableXact().
>
> Rather than updating the list, isn't it better to remove it? The declarations
> are already available in the headers predicate.h, and maintaining
> a duplicate list seems likely to result in further omissions and
> outdated signatures.
>
> Thought?

Sounds good to me.

--
Best regards,
Aleksander Alekseev

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2026-10-23 14:10:49 Re: [DEPARSE] EXPLAIN prints another ModifyTable's RETURNING aliases in a SubPlan
Previous Message Sho Ito 2026-10-23 13:39:58 [PATCH v1] Fix tab completion for REINDEX SYSTEM