This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new 233c0d9cdc0 Fix compile errors for access/brin
233c0d9cdc0 is described below

commit 233c0d9cdc0f124351b3e80041f8181c0d5c478e
Author: Jinbao Chen <[email protected]>
AuthorDate: Sun Sep 28 17:31:27 2025 +0800

    Fix compile errors for access/brin
---
 src/backend/access/brin/brin_xlog.c |  3 +--
 src/include/postgres.h              | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/backend/access/brin/brin_xlog.c 
b/src/backend/access/brin/brin_xlog.c
index 80b8f1e9237..1077ae7e6cf 100644
--- a/src/backend/access/brin/brin_xlog.c
+++ b/src/backend/access/brin/brin_xlog.c
@@ -229,8 +229,7 @@ brin_xlog_revmap_extend(XLogReaderState *record)
         * GPDB: If we have registered backup block id = 2, it means that this 
index
         * is on an AO/CO relation, and we are extending a revmap chain.
         */
-       ao_chain_exists = XLogRecGetBlockTag(record, 2, NULL, NULL, NULL);
-       if (ao_chain_exists)
+       XLogRecGetBlockTag(record, 2, NULL, NULL, NULL);
        {
                XLogRedoAction  currLastRevmapBufAction =
                                                          
XLogReadBufferForRedo(record, 2, &currLastRevmapBuf);
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 06c13d296b5..ceef59b921b 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -492,6 +492,23 @@ Float4GetDatum(float4 X)
 }
 
 /*
+ * DatumGetFloat4
+ *             Returns 4-byte floating point value of a datum.
+ */
+static inline float4
+DatumGetFloat4(Datum X)
+{
+       union
+       {
+               int32           value;
+               float4          retval;
+       }                       myunion;
+
+       myunion.value = DatumGetInt32(X);
+       return myunion.retval;
+}
+
+/*\
  * DatumGetFloat8
  *             Returns 8-byte floating point value of a datum.
  *


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to