v2-0001-Remove-Int8GetDatum-function.patch
text/x-patch
Filename: v2-0001-Remove-Int8GetDatum-function.patch
Type: text/x-patch
Part: 1
Message:
Re: Define DatumGetInt8 function.
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch v2-0001
Subject: Remove Int8GetDatum function.
| File | + | − |
|---|---|---|
| src/include/postgres.h | 0 | 10 |
From 8ccd133cd06d66416c9f718b10ce889a27046724 Mon Sep 17 00:00:00 2001
From: reshke <reshke@double.cloud>
Date: Tue, 6 Jan 2026 14:03:49 +0000
Subject: [PATCH v2 1/2] Remove Int8GetDatum function.
We have no uses of Int8GetDatum in our tree and
did not have for a long time (or never).
Suggested-by: Tom Lane <tgl@sss.pgh.pa.us>
---
src/include/postgres.h | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/include/postgres.h b/src/include/postgres.h
index 7d93fbce709..1affc0565bc 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -134,16 +134,6 @@ CharGetDatum(char X)
return (Datum) X;
}
-/*
- * Int8GetDatum
- * Returns datum representation for an 8-bit integer.
- */
-static inline Datum
-Int8GetDatum(int8 X)
-{
- return (Datum) X;
-}
-
/*
* DatumGetUInt8
* Returns 8-bit unsigned integer value of a datum.
--
2.43.0