diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/pg_operator.h | 17 | ||||
-rw-r--r-- | src/include/catalog/pg_operator_fn.h | 34 |
2 files changed, 34 insertions, 17 deletions
diff --git a/src/include/catalog/pg_operator.h b/src/include/catalog/pg_operator.h index e79ce57f6eb..facef0f335f 100644 --- a/src/include/catalog/pg_operator.h +++ b/src/include/catalog/pg_operator.h @@ -23,8 +23,6 @@ #define PG_OPERATOR_H #include "catalog/genbki.h" -#include "catalog/objectaddress.h" -#include "nodes/pg_list.h" /* ---------------- * pg_operator definition. cpp turns this into @@ -1826,19 +1824,4 @@ DESCR("delete array element"); DATA(insert OID = 3287 ( "#-" PGNSP PGUID b f f 3802 1009 3802 0 0 jsonb_delete_path - - )); DESCR("delete path"); -/* - * function prototypes - */ -extern ObjectAddress OperatorCreate(const char *operatorName, - Oid operatorNamespace, - Oid leftTypeId, - Oid rightTypeId, - Oid procedureId, - List *commutatorName, - List *negatorName, - Oid restrictionId, - Oid joinId, - bool canMerge, - bool canHash); - #endif /* PG_OPERATOR_H */ diff --git a/src/include/catalog/pg_operator_fn.h b/src/include/catalog/pg_operator_fn.h new file mode 100644 index 00000000000..bf236d6d745 --- /dev/null +++ b/src/include/catalog/pg_operator_fn.h @@ -0,0 +1,34 @@ +/*------------------------------------------------------------------------- + * + * pg_operator_fn.h +* prototypes for functions in catalog/pg_operator.c + * + * + * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * src/include/catalog/pg_operator_fn.h + * + *------------------------------------------------------------------------- + */ +#ifndef PG_OPERATOR_FN_H +#define PG_OPERATOR_FN_H + +#include "catalog/objectaddress.h" +#include "nodes/pg_list.h" + +extern ObjectAddress OperatorCreate(const char *operatorName, + Oid operatorNamespace, + Oid leftTypeId, + Oid rightTypeId, + Oid procedureId, + List *commutatorName, + List *negatorName, + Oid restrictionId, + Oid joinId, + bool canMerge, + bool canHash); + +extern ObjectAddress makeOperatorDependencies(HeapTuple tuple, bool isUpdate); + +#endif /* PG_OPERATOR_FN_H */ |