PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/htup_details.h"
#include "access/table.h"
#include "catalog/indexing.h"
#include "catalog/pg_rewrite.h"
#include "rewrite/rewriteSupport.h"
#include "utils/fmgroids.h"
#include "utils/inval.h"
#include "utils/lsyscache.h"
#include "utils/rel.h"
#include "utils/syscache.h"
Go to the source code of this file.
Functions | |
bool | IsDefinedRewriteRule (Oid owningRel, const char *ruleName) |
void | SetRelationRuleStatus (Oid relationId, bool relHasRules) |
Oid | get_rewrite_oid (Oid relid, const char *rulename, bool missing_ok) |
Definition at line 93 of file rewriteSupport.c.
References Assert(), ereport, errcode(), errmsg(), ERROR, get_rel_name(), GETSTRUCT, HeapTupleIsValid, InvalidOid, ObjectIdGetDatum(), PointerGetDatum(), ReleaseSysCache(), RULERELNAME, and SearchSysCache2().
Referenced by get_object_address_relobject().
Definition at line 33 of file rewriteSupport.c.
References ObjectIdGetDatum(), PointerGetDatum(), RULERELNAME, and SearchSysCacheExists2.
Referenced by RenameRewriteRule().
Definition at line 54 of file rewriteSupport.c.
References CacheInvalidateRelcacheByTuple(), CatalogTupleUpdate(), elog(), ERROR, GETSTRUCT, heap_freetuple(), HeapTupleIsValid, ObjectIdGetDatum(), RELOID, RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), and table_open().
Referenced by DefineQueryRewrite().