mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Consolidate ItemPointer to Datum conversion functions
Instead of defining the same set of macros several times, define it once in an appropriate header file. In passing, convert to inline functions. Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://www.postgresql.org/message-id/flat/844dd4c5-e5a1-3df1-bfaf-d1e1c2a16e45%40enterprisedb.com
This commit is contained in:
@ -21,9 +21,6 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
#define DatumGetItemPointer(X) ((ItemPointer) DatumGetPointer(X))
|
||||
#define ItemPointerGetDatum(X) PointerGetDatum(X)
|
||||
|
||||
|
||||
PG_FUNCTION_INFO_V1(gin_metapage_info);
|
||||
PG_FUNCTION_INFO_V1(gin_page_opaque_info);
|
||||
|
Reference in New Issue
Block a user