From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Clean up code comments for pg_wchar_tbl
Date: Tue, 03 Nov 2026 10:06:59 +0000
Message-ID: <E1xOBPv-000000000IU-3kn2@gemulon.postgresql.org> (raw)
Clean up code comments for pg_wchar_tbl
The documentation for the functions in the fields of pg_wchar_tbl was
spread out all over the place and was missing a lot of detail. Move
and expand this at the definition of the struct. (See also struct
TableAmRoutine in access/tableam.h for inspiration.)
Also remove unnecessary typedefs, except where they were used
elsewhere as well. This indirection makes the code documentation
harder to follow. And some of those typedefs had nonsensical names,
like *_converter for functions that didn't do any converting.
Reviewed-by: Greg Burd <greg@burd.me>
Discussion: https://www.postgresql.org/message-id/flat/637d73f4-e088-4ead-b9e6-1ddb4cd4693f%40eisentraut.org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3ba886b35a2804dcd275868a19135a31ceb81386
Modified Files
--------------
src/backend/utils/mb/mbutils.c | 10 ++--
src/common/wchar.c | 66 +++------------------
src/include/mb/pg_wchar.h | 125 ++++++++++++++++++++++++++++++++-------
src/tools/pgindent/typedefs.list | 8 +--
4 files changed, 117 insertions(+), 92 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: Clean up code comments for pg_wchar_tbl
In-Reply-To: <E1xOBPv-000000000IU-3kn2@gemulon.postgresql.org>
References: <E1xOBPv-000000000IU-3kn2@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox