v1-0001-Define-DatumGetInt8-function.patch
application/octet-stream
Filename: v1-0001-Define-DatumGetInt8-function.patch
Type: application/octet-stream
Part: 0
Message:
Define DatumGetInt8 function.
From d5dac86267e48e24f7d082cb2c265f8d97e17c23 Mon Sep 17 00:00:00 2001
From: reshke <reshke@double.cloud>
Date: Mon, 29 Dec 2025 10:53:52 +0000
Subject: [PATCH v1] 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 357cbd6fd96..680d3e30907 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -134,6 +134,16 @@ CharGetDatum(char X)
return (Datum) X;
}
+/*
+ * DatumGetInt8
+ * Returns 8-bit integer value of a datum.
+ */
+static inline int8
+DatumGetInt8(Datum X)
+{
+ return (int8) X;
+}
+
/*
* Int8GetDatum
* Returns datum representation for an 8-bit integer.
--
2.43.0