Re: remove obsolete comment in AtEOXact_Inval

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Cc: Steven Niu <niushiji(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: remove obsolete comment in AtEOXact_Inval
Date: 2026-05-08 08:54:22
Message-ID: 3F5432E3-7E1D-4B18-B745-0B6FFC3EA37F@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 27 Oct 2025, at 04:50, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>
>> On Oct 27, 2025, at 10:43, Steven Niu <niushiji(at)gmail(dot)com> wrote:
>>
>> Hi, Hackers,
>>
>> When I read the code, I noticed there is one line of comment in function AtEOXact_Inval() which is obviously obsolete.
>>
>> "This should be called as the last step in processing a transaction"
>>
>> Steven<0001-PATCH-remove-obsolete-comment-in-AtEOXact_Inval.patch>
>
> +1
>
> The comment of "void AtEOXact_Inval(bool isCommit):
> ```
> * Note:
> * This should be called as the last step in processing a transaction.
> ```
> Was added 29 years ago.

This comment was part of the Postgres95 import, and was originally added to the
function RegisterInvalid() which in turn was committed by Cimarron Taylor in
1990. I agree that it's no longer helpful and will go ahead to remove it shortly
unless someone disagrees.

--
Daniel Gustafsson

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2026-05-08 09:07:45 Re: Include schema-qualified names in publication error messages.
Previous Message zengman 2026-05-08 08:39:46 (SQL/PGQ) cache lookup failed for label