25 #include "utils/fmgroids.h"
61 elog(
ERROR,
"could not find tuple for rule %u", ruleOid);
73 (
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
74 errmsg(
"permission denied: \"%s\" is a system catalog",
bool IsSystemRelation(Relation relation)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
void systable_endscan(SysScanDesc sysscan)
HeapTuple systable_getnext(SysScanDesc sysscan)
SysScanDesc systable_beginscan(Relation heapRelation, Oid indexId, bool indexOK, Snapshot snapshot, int nkeys, ScanKey key)
bool allowSystemTableMods
#define HeapTupleIsValid(tuple)
void CatalogTupleDelete(Relation heapRel, ItemPointer tid)
void CacheInvalidateRelcache(Relation relation)
#define AccessExclusiveLock
FormData_pg_rewrite * Form_pg_rewrite
static Datum ObjectIdGetDatum(Oid X)
#define RelationGetRelationName(relation)
void RemoveRewriteRuleById(Oid ruleOid)
void ScanKeyInit(ScanKey entry, AttrNumber attributeNumber, StrategyNumber strategy, RegProcedure procedure, Datum argument)
#define BTEqualStrategyNumber
void table_close(Relation relation, LOCKMODE lockmode)
Relation table_open(Oid relationId, LOCKMODE lockmode)