Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments
Date
Msg-id afjTOw2fxLkktOsH@nathan
Whole thread
In response to Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, May 04, 2026 at 12:40:19PM -0400, Tom Lane wrote:
> Another amusing diff I noticed:
> 
> --- a/src/backend/partitioning/partbounds.c
> +++ b/src/backend/partitioning/partbounds.c
> @@ -5713,7 +5713,7 @@ check_parent_values_in_new_partitions(Relation parent,
>   * 3. In case new partitions don't contain the DEFAULT partition and the
>   *      partitioned table does not have the DEFAULT partition, the following
>   *      should be true: the sum of the bounds of new partitions should be equal
> - &      to the bound of the split partition.
> + * &      to the bound of the split partition.
>   *
>   * parent:            partitioned table
>   * splitPartOid:    split partition Oid
> 
> Clearly, this is somebody's off-by-one-key typo, and the correct
> fix is s/&/*/.  I suspect that fixing that manually is the most
> expedient answer, rather than trying to make pg_bsd_indent smart
> enough to DTRT.

+1.  This patch has been rather good at finding small mistakes like this,
which I've been manually fixing along the way.

-- 
nathan



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCH] pg_bsd_indent: improve formatting of multiline comments
Next
From: Tomas Vondra
Date:
Subject: Re: EXPLAIN: showing ReadStream / prefetch stats