Re: Documenting coding style - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Documenting coding style
Date
Msg-id 53d971b5-8022-46df-a15e-084ed30c2d8e@dunslane.net
Whole thread Raw
In response to Documenting coding style  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 2026-04-10 Fr 10:17 AM, Andres Freund wrote:
> Hi,
>
> On April 10, 2026 3:57:56 AM EDT, Thomas Munro <thomas.munro@gmail.com> wrote:
>> Nitpicking code review for commit b15c1513:
>>
>> +read_archive_wal_page(XLogDumpPrivate *privateInfo, XLogRecPtr targetPagePtr,
>> +                     Size count, char *readBuff)
>>
>> I thought we agreed to stop using Size for new code?  size_t has been
>> around since C89.
> We really need to start documenting some of this stuff somewhere. Deciding something a few years ago, deep in a
thread,won't actually help anyone but the participants (and maybe not even them) to know about it.
 
>
> I wonder if we should move the coding style section out of sgml into a top-level CODING_STYLE.md or something like
that.
>
> And then obviously add things like Size being deprecated.
>

+many. Great idea.


cheers


andew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: pg17: XX000: no relation entry for relid 0
Next
From: Fujii Masao
Date:
Subject: Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid