From 29ba99926b2748df7f72cef5b352824dab7a5630 Mon Sep 17 00:00:00 2001
From: Tristan Partin <tristan@partin.io>
Date: Wed, 23 Sep 2026 06:25:15 +0000
Subject: [PATCH v2 5/8] Hide pg_attribute_counted_by() from pg_bsd_indent

Add it to the list of declaration attributes, so that it can be written
in front of the type.

Author: Tristan Partin <tristan@partin.io>
Signed-off-by: Tristan Partin <tristan@partin.io>
---
 src/tools/pgindent/pgindent | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent
index 67e76549f05..0dd36e194f7 100755
--- a/src/tools/pgindent/pgindent
+++ b/src/tools/pgindent/pgindent
@@ -238,6 +238,7 @@ sub write_source
 # Declaration attributes that pg_bsd_indent doesn't know how to handle.
 my @declaration_attributes = qw(
   alignas
+  pg_attribute_counted_by
 );
 
 # Text of each declaration attribute, stashed by pre_indent() and restored
-- 
Tristan Partin
https://tristan.partin.io

