PostgreSQL Source Code
git master
|
#include "catalog/genbki.h"
#include "catalog/objectaddress.h"
#include "catalog/pg_operator_d.h"
#include "nodes/pg_list.h"
Go to the source code of this file.
Typedefs | |
typedef FormData_pg_operator * | Form_pg_operator |
Functions | |
CATALOG (pg_operator, 2617, OperatorRelationId) | |
DECLARE_UNIQUE_INDEX_PKEY (pg_operator_oid_index, 2688, OperatorOidIndexId, pg_operator, btree(oid oid_ops)) | |
DECLARE_UNIQUE_INDEX (pg_operator_oprname_l_r_n_index, 2689, OperatorNameNspIndexId, pg_operator, btree(oprname name_ops, oprleft oid_ops, oprright oid_ops, oprnamespace oid_ops)) | |
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) |
ObjectAddress | makeOperatorDependencies (HeapTuple tuple, bool makeExtensionDep, bool isUpdate) |
void | OperatorUpd (Oid baseId, Oid commId, Oid negId, bool isDelete) |
Variables | |
FormData_pg_operator | |
typedef FormData_pg_operator* Form_pg_operator |
Definition at line 83 of file pg_operator.h.
CATALOG | ( | pg_operator | , |
2617 | , | ||
OperatorRelationId | |||
) |
Definition at line 31 of file pg_operator.h.
References b, BKI_DEFAULT, BKI_LOOKUP, and BKI_LOOKUP_OPT.
DECLARE_UNIQUE_INDEX | ( | pg_operator_oprname_l_r_n_index | , |
2689 | , | ||
OperatorNameNspIndexId | , | ||
pg_operator | , | ||
btree(oprname name_ops, oprleft oid_ops, oprright oid_ops, oprnamespace oid_ops) | |||
) |
DECLARE_UNIQUE_INDEX_PKEY | ( | pg_operator_oid_index | , |
2688 | , | ||
OperatorOidIndexId | , | ||
pg_operator | , | ||
btree(oid oid_ops) | |||
) |
ObjectAddress makeOperatorDependencies | ( | HeapTuple | tuple, |
bool | makeExtensionDep, | ||
bool | isUpdate | ||
) |
Definition at line 777 of file pg_operator.c.
References add_exact_object_address(), ObjectAddress::classId, deleteDependencyRecordsFor(), deleteSharedDependencyRecordsFor(), DEPENDENCY_NORMAL, free_object_addresses(), GETSTRUCT, new_object_addresses(), ObjectAddressSet, ObjectAddress::objectId, OidIsValid, oper(), record_object_address_dependencies(), recordDependencyOnCurrentExtension(), and recordDependencyOnOwner().
Referenced by AlterOperator(), OperatorCreate(), and OperatorShellMake().
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 | ||
) |
Definition at line 327 of file pg_operator.c.
References aclcheck_error(), ACLCHECK_NOT_OWNER, BoolGetDatum(), CatalogTupleInsert(), CatalogTupleUpdate(), CharGetDatum(), elog(), ereport, errcode(), errmsg(), ERROR, get_func_rettype(), get_other_operator(), GetNewOidWithIndex(), GetUserId(), heap_form_tuple(), heap_modify_tuple(), HeapTupleIsValid, i, InvalidOid, InvokeObjectPostCreateHook, makeOperatorDependencies(), NameGetDatum(), NameListToString(), namestrcpy(), OBJECT_OPERATOR, object_ownercheck(), ObjectIdGetDatum(), OidIsValid, OperatorGet(), OperatorUpd(), OPEROID, RelationGetDescr, RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), table_open(), validOperatorName(), and values.
Referenced by DefineOperator().
Definition at line 654 of file pg_operator.c.
References CatalogTupleUpdate(), CommandCounterIncrement(), GETSTRUCT, HeapTupleIsValid, InvalidOid, ObjectIdGetDatum(), OidIsValid, OPEROID, RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), and table_open().
Referenced by OperatorCreate(), and RemoveOperatorById().
FormData_pg_operator |
Definition at line 76 of file pg_operator.h.