Trivial fixes for some IDENTIFICATION comment lines - Mailing list pgsql-hackers

From Shulgin, Oleksandr
Subject Trivial fixes for some IDENTIFICATION comment lines
Date
Msg-id CACACo5QumpojwtUD2rjBFF_A0pdpZTpo6X_9mwPrfmva8Nw81A@mail.gmail.com
Whole thread Raw
Responses Re: Trivial fixes for some IDENTIFICATION comment lines  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hello,

I've noticed that in src/backend/replication/logical/reorderbuffer.c, the IDENTIFICATION comment line is incorrect:

 * IDENTIFICATION
 *  src/backend/replication/reorderbuffer.c

By using a simple find+grep command I can see this is also the case for the following files:

$ find src -name \*.c -o -name \*.h | xargs grep -A1 IDENTIFICATION | grep -v -E 'IDENTIFICATION|--' | grep -v '^\(src/.*\.[ch]\)-\s*\*\s*\1\s*$'

src/include/utils/evtcache.h- *   src/backend/utils/cache/evtcache.c
src/backend/utils/cache/relfilenodemap.c- *       src/backend/utils/cache/relfilenode.c
src/backend/utils/adt/version.c- *
src/backend/storage/ipc/dsm_impl.c- *     src/backend/storage/ipc/dsm.c
src/backend/replication/logical/reorderbuffer.c- *        src/backend/replication/reorderbuffer.c
src/backend/replication/logical/snapbuild.c- *    src/backend/replication/snapbuild.c
src/backend/replication/logical/logicalfuncs.c- *         src/backend/replication/logicalfuncs.c
src/backend/commands/dropcmds.c- *        src/backend/catalog/dropcmds.c

The one wtih version.c is a false positive: there's just an extra blank line in the comment.

A patch to fix the the above is attached.

Another minor thing is that if there is a convention for the order of Copyright, NOTES and IDENTIFICATION, then it is not followed strictly.  Compare e.g. reorderbuffer.c vs. snapbuild.c.

--
Alex

Attachment

pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: postgres_fdw join pushdown (was Re: Custom/Foreign-Join-APIs)
Next
From: Andres Freund
Date:
Subject: Re: Trivial fixes for some IDENTIFICATION comment lines