|
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)) | |
| MAKE_SYSCACHE (OPEROID, pg_operator_oid_index, 32) | |
| MAKE_SYSCACHE (OPERNAMENSP, pg_operator_oprname_l_r_n_index, 256) | |
| Oid | OperatorLookup (List *operatorName, Oid leftObjectId, Oid rightObjectId, bool *defined) |
| 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 | OperatorValidateParams (Oid leftTypeId, Oid rightTypeId, Oid operResultType, bool hasCommutator, bool hasNegator, bool hasRestrictionSelectivity, bool hasJoinSelectivity, bool canMerge, bool canHash) |
| 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) | |||
| ) |
| MAKE_SYSCACHE | ( | OPERNAMENSP | , |
| pg_operator_oprname_l_r_n_index | , | ||
| 256 | |||
| ) |
| MAKE_SYSCACHE | ( | OPEROID | , |
| pg_operator_oid_index | , | ||
| 32 | |||
| ) |
| ObjectAddress makeOperatorDependencies | ( | HeapTuple | tuple, |
| bool | makeExtensionDep, | ||
| bool | isUpdate | ||
| ) |
Definition at line 853 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 321 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(), NIL, OBJECT_OPERATOR, object_ownercheck(), ObjectIdGetDatum(), OidIsValid, OperatorGet(), OperatorUpd(), OperatorValidateParams(), RelationGetDescr, RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), table_open(), validOperatorName(), and values.
Referenced by DefineOperator().
Definition at line 164 of file pg_operator.c.
References get_opcode(), InvalidOid, LookupOperName(), OidIsValid, and RegProcedureIsValid.
Referenced by get_other_operator(), and ValidateOperatorReference().
Definition at line 684 of file pg_operator.c.
References CatalogTupleUpdate(), CommandCounterIncrement(), ereport, errcode(), errmsg(), ERROR, get_opname(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, NameStr, ObjectIdGetDatum(), OidIsValid, RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), and table_open().
Referenced by AlterOperator(), OperatorCreate(), and RemoveOperatorById().
| void OperatorValidateParams | ( | Oid | leftTypeId, |
| Oid | rightTypeId, | ||
| Oid | operResultType, | ||
| bool | hasCommutator, | ||
| bool | hasNegator, | ||
| bool | hasRestrictionSelectivity, | ||
| bool | hasJoinSelectivity, | ||
| bool | canMerge, | ||
| bool | canHash | ||
| ) |
Definition at line 556 of file pg_operator.c.
References ereport, errcode(), errmsg(), ERROR, and OidIsValid.
Referenced by AlterOperator(), and OperatorCreate().
| FormData_pg_operator |
Definition at line 76 of file pg_operator.h.