Hi Heikki, Thomas, The typedefs PGShmemType and HugePagesType are not indented properly. That's because those entries are missing from typedefs list. Is that intentional? Here's tiny patch fixing the indentation and typedefs list.
-- Best Wishes, Ashutosh Bapat
From 53c3ac6572345a0d581aec9d70c94e66ccfafc53 Mon Sep 17 00:00:00 2001 From: Ashutosh Bapat <[email protected]> Date: Mon, 12 Jan 2026 14:34:01 +0530 Subject: [PATCH v20260112] Indentation of PGShmemType and HugePagesType typedefs These typedefs are absent from typedefs.list, causing pgindent to misindent them. Fix the indentation as well as typedefs.list. Author: Ashutosh Bapat <[email protected]> --- src/include/storage/pg_shmem.h | 4 ++-- src/tools/pgindent/typedefs.list | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/include/storage/pg_shmem.h b/src/include/storage/pg_shmem.h index 3aeada554b2..6f93e338006 100644 --- a/src/include/storage/pg_shmem.h +++ b/src/include/storage/pg_shmem.h @@ -54,7 +54,7 @@ typedef enum HUGE_PAGES_ON, HUGE_PAGES_TRY, /* only for huge_pages */ HUGE_PAGES_UNKNOWN, /* only for huge_pages_status */ -} HugePagesType; +} HugePagesType; /* Possible values for shared_memory_type */ typedef enum @@ -62,7 +62,7 @@ typedef enum SHMEM_TYPE_WINDOWS, SHMEM_TYPE_SYSV, SHMEM_TYPE_MMAP, -} PGShmemType; +} PGShmemType; #ifndef WIN32 extern PGDLLIMPORT unsigned long UsedShmemSegID; diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list index 09e7f1d420e..659aa5b718d 100644 --- a/src/tools/pgindent/typedefs.list +++ b/src/tools/pgindent/typedefs.list @@ -1220,6 +1220,7 @@ HeapTupleHeaderData HeapTupleTableSlot HistControl HotStandbyState +HugePagesType I32 ICU_Convert_Func ID @@ -1902,6 +1903,7 @@ PGRUsage PGSemaphore PGSemaphoreData PGShmemHeader +PGShmemType PGTargetServerType PGTernaryBool PGTransactionStatusType base-commit: e39ece0343fef7bf5a689d75bbafff9386e6e3da -- 2.34.1
