Re: Fix wrong filename in header comment of gin_tuple.h

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Richard Guo <guofenglinux(at)gmail(dot)com>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, tomas(at)vondra(dot)me
Subject: Re: Fix wrong filename in header comment of gin_tuple.h
Date: 2025-09-22 22:21:03
Message-ID: 5D703C5A-4394-4B7B-929F-F7D0D992C70A@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Sep 23, 2025, at 04:02, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
>
> On Mon, 22 Sept 2025 at 14:46, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
>> diff --git a/src/backend/rewrite/rowsecurity.c b/src/backend/rewrite/rowsecurity.c
>
>> - * rewrite/rowsecurity.c
>> + * rowsecurity.c
>
>> + *
>> + * IDENTIFICATION
>> + * src/backend/rewrite/rowsecurity.c
>
> I don't what's incorrect with these as I'm not aware of the rule that
> the IDENTIFICATION must exist or that the filename must be the
> filename only without any of the path. Plenty of other files don't
> have the identification text, so not sure why your script only picked
> up on rowsecurity.c.
>

I see a lot of files don’t have “IDENTIFICATION”, the main problem is the filename that contains one level of parent path.

My script just scan all .c and .h files and extract one-line filename and file path from header comments. If they don’t equal to either pure filename or file path relative to repo root, then capture it. And rowsecurity.c was the only capture, so I thought the filename part (“rewrite/rowsecurity.c) was a problem. When I made the fix, I added “IDENTIFICATION” because I saw a lot of other files having it, but my script didn’t check “IDENTIFICATION”.

I don’t insist to push this patch if you don’t consider the filename part is a problem.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2025-09-22 22:35:22 Re: Updating IPC::Run in CI?
Previous Message Andres Freund 2025-09-22 22:14:12 Re: Buffer locking is special (hints, checksums, AIO writes)