Hi
While I was implementing my own version BRIN extension, I noticed that
BrinOpcInfo in the doc does not match the actual code.
BrinOpcInfo.oi_regular_nulls was added at 72ccf55, which is 5 years ago,
but the doc update was forgotten.
https://www.postgresql.org/docs/current/brin.html#BRIN-EXTENSIBILITY
The patch attached. Maybe we could remove BrinOpcInfo structure from the
doc but it seems to me the update does not happen frequently.
(I noticed other several things about BRIN also and will send another
patch.)
--
Regards,
Takeshi Ideriha
From ed5156b3e062c9e838b0b3535720bda6508addb1 Mon Sep 17 00:00:00 2001
From: Takeshi Ideriha <[email protected]>
Date: Tue, 1 Dec 2026 08:47:47 +0900
Subject: [PATCH v1] doc: Fix BrinOpcInfo members to match the code
---
doc/src/sgml/brin.sgml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/doc/src/sgml/brin.sgml b/doc/src/sgml/brin.sgml
index 64fb520db7e..8557517961b 100644
--- a/doc/src/sgml/brin.sgml
+++ b/doc/src/sgml/brin.sgml
@@ -849,6 +849,9 @@ typedef struct BrinOpcInfo
/* Number of columns stored in an index column of this opclass */
uint16 oi_nstored;
+ /* Regular processing of NULLs in BrinValues? */
+ bool oi_regular_nulls;
+
/* Opaque pointer for the opclass' private use */
void *oi_opaque;
--
2.54.0 (Apple Git-157)