PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
ObjectAddress | CommentObject (CommentStmt *stmt) |
void | DeleteComments (Oid oid, Oid classoid, int32 subid) |
void | CreateComments (Oid oid, Oid classoid, int32 subid, const char *comment) |
void | DeleteSharedComments (Oid oid, Oid classoid) |
void | CreateSharedComments (Oid oid, Oid classoid, const char *comment) |
char * | GetComment (Oid oid, Oid classoid, int32 subid) |
ObjectAddress CommentObject | ( | CommentStmt * | stmt | ) |
Definition at line 40 of file comment.c.
References check_object_ownership(), ObjectAddress::classId, CommentStmt::comment, CreateComments(), CreateSharedComments(), ereport, errcode(), errmsg(), ERROR, get_database_oid(), get_object_address(), GetUserId(), InvalidObjectAddress, NoLock, CommentStmt::object, OBJECT_COLUMN, OBJECT_DATABASE, OBJECT_ROLE, OBJECT_TABLESPACE, ObjectAddress::objectId, ObjectAddress::objectSubId, CommentStmt::objtype, OidIsValid, RelationData::rd_rel, relation_close(), RelationGetRelationName, ShareUpdateExclusiveLock, strVal, and WARNING.
Referenced by ATExecCmd(), ProcessUtilitySlow(), and standard_ProcessUtility().
Definition at line 142 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), CatalogTupleInsert(), CatalogTupleUpdate(), CStringGetTextDatum, DescriptionObjIndexId, heap_form_tuple(), heap_freetuple(), heap_modify_tuple(), i, Int32GetDatum, NoLock, ObjectIdGetDatum, RelationGetDescr, RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), table_open(), and values.
Referenced by CommentObject(), CreateExtensionInternal(), CreateStatistics(), DefineIndex(), and pg_import_system_collations().
Definition at line 237 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), CatalogTupleInsert(), CatalogTupleUpdate(), CStringGetTextDatum, heap_form_tuple(), heap_freetuple(), heap_modify_tuple(), i, NoLock, ObjectIdGetDatum, RelationGetDescr, RowExclusiveLock, ScanKeyInit(), SharedDescriptionObjIndexId, systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), table_open(), and values.
Referenced by CommentObject().
Definition at line 325 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), DescriptionObjIndexId, Int32GetDatum, ObjectIdGetDatum, RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by deleteOneObject().
Definition at line 373 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), ObjectIdGetDatum, RowExclusiveLock, ScanKeyInit(), SharedDescriptionObjIndexId, systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by dropdb(), DropRole(), and DropTableSpace().
Definition at line 409 of file comment.c.
References AccessShareLock, BTEqualStrategyNumber, DescriptionObjIndexId, heap_getattr, Int32GetDatum, ObjectIdGetDatum, RelationGetDescr, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), table_open(), TextDatumGetCString, and value.
Referenced by ATPostAlterTypeParse(), expandTableLikeClause(), RebuildConstraintComment(), and transformTableLikeClause().