PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/genam.h"
#include "access/htup_details.h"
#include "access/relation.h"
#include "access/table.h"
#include "catalog/indexing.h"
#include "catalog/objectaddress.h"
#include "catalog/pg_description.h"
#include "catalog/pg_shdescription.h"
#include "commands/comment.h"
#include "commands/dbcommands.h"
#include "miscadmin.h"
#include "utils/builtins.h"
#include "utils/fmgroids.h"
#include "utils/rel.h"
Go to the source code of this file.
Functions | |
ObjectAddress | CommentObject (CommentStmt *stmt) |
void | CreateComments (Oid oid, Oid classoid, int32 subid, const char *comment) |
void | CreateSharedComments (Oid oid, Oid classoid, const char *comment) |
void | DeleteComments (Oid oid, Oid classoid, int32 subid) |
void | DeleteSharedComments (Oid oid, Oid classoid) |
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, CreateComments(), CreateSharedComments(), ereport, errcode(), errdetail_relkind_not_supported(), errmsg(), ERROR, get_database_oid(), get_object_address(), GetUserId(), InvalidObjectAddress, NoLock, OBJECT_COLUMN, OBJECT_DATABASE, OBJECT_ROLE, OBJECT_TABLESPACE, ObjectAddress::objectId, ObjectAddress::objectSubId, OidIsValid, RelationData::rd_rel, relation_close(), RelationGetRelationName, ShareUpdateExclusiveLock, stmt, strVal, and WARNING.
Referenced by ATExecCmd(), ProcessUtilitySlow(), and standard_ProcessUtility().
Definition at line 143 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), CatalogTupleInsert(), CatalogTupleUpdate(), comment, CStringGetTextDatum, description, 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 238 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), CatalogTupleInsert(), CatalogTupleUpdate(), comment, CStringGetTextDatum, heap_form_tuple(), heap_freetuple(), heap_modify_tuple(), i, NoLock, ObjectIdGetDatum(), RelationGetDescr, RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), table_open(), and values.
Referenced by CommentObject().
Definition at line 326 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), description, Int32GetDatum(), ObjectIdGetDatum(), RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by deleteOneObject().
Definition at line 374 of file comment.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), ObjectIdGetDatum(), RowExclusiveLock, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), HeapTupleData::t_self, table_close(), and table_open().
Referenced by dropdb(), DropRole(), and DropTableSpace().
Definition at line 410 of file comment.c.
References AccessShareLock, BTEqualStrategyNumber, comment, description, 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().