We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40511f7 commit 10b0f02Copy full SHA for 10b0f02
src/include/utils/jsonb.h
@@ -70,6 +70,14 @@ typedef enum
70
#define PG_GETARG_JSONB(x) DatumGetJsonb(PG_GETARG_DATUM(x))
71
#define PG_RETURN_JSONB(x) PG_RETURN_POINTER(x)
72
73
+/* v11 compatibility macros */
74
+#ifndef DatumGetJsonbP
75
+# define DatumGetJsonbP(d) DatumGetJsonb(d)
76
+# define JsonbPGetDatum(p) PointerGetDatum(p)
77
+# define PG_GETARG_JSONB_P(x) DatumGetJsonbP(PG_GETARG_DATUM(x))
78
+# define PG_RETURN_JSONB_P(x) PG_RETURN_POINTER(x)
79
+#endif
80
+
81
typedef struct JsonbPair JsonbPair;
82
typedef struct JsonbValue JsonbValue;
83
0 commit comments