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

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

commit 22e16c6d561dde9984f57e53f95b2d43cb3b697f
Author: reshke <[email protected]>
AuthorDate: Mon Dec 29 09:32:35 2025 +0000

    Define DatumGetInt8 function.
---
 src/include/postgres.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/include/postgres.h b/src/include/postgres.h
index ceef59b921b..1c3b24dd009 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -158,6 +158,16 @@ Int8GetDatum(int8 X)
        return (Datum) X;
 }
 
+/*
+ * DatumGetInt8
+ *             Returns 8-bit signed integer value of a datum.
+ */
+static inline int8
+DatumGetInt8(Datum X)
+{
+       return (int8) X;
+}
+
 /*
  * DatumGetUInt8
  *             Returns 8-bit unsigned integer value of a datum.


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

Reply via email to