PostgreSQL Source Code
git master
|
#include "catalog/objectaddress.h"
#include "nodes/params.h"
#include "nodes/parsenodes.h"
#include "tcop/dest.h"
#include "utils/relcache.h"
Go to the source code of this file.
Functions | |
void | SetMatViewPopulatedState (Relation relation, bool newstate) |
ObjectAddress | ExecRefreshMatView (RefreshMatViewStmt *stmt, const char *queryString, ParamListInfo params, QueryCompletion *qc) |
DestReceiver * | CreateTransientRelDestReceiver (Oid transientoid) |
bool | MatViewIncrementalMaintenanceIsEnabled (void) |
DestReceiver* CreateTransientRelDestReceiver | ( | Oid | transientoid | ) |
Definition at line 435 of file matview.c.
References DestTransientRel, palloc0(), transientrel_destroy(), transientrel_receive(), transientrel_shutdown(), and transientrel_startup().
Referenced by CreateDestReceiver(), and ExecRefreshMatView().
ObjectAddress ExecRefreshMatView | ( | RefreshMatViewStmt * | stmt, |
const char * | queryString, | ||
ParamListInfo | params, | ||
QueryCompletion * | qc | ||
) |
Definition at line 138 of file matview.c.
References AccessExclusiveLock, AccessShareLock, Assert(), AtEOXact_GUC(), CheckTableNotInUse(), CMD_SELECT, CreateTransientRelDestReceiver(), generate_unaccent_rules::dest, elog(), ereport, errcode(), errhint(), errmsg(), ERROR, ExclusiveLock, get_namespace_name(), GetDefaultTablespace(), GetUserIdAndSecContext(), index_close(), index_open(), is_usable_unique_index(), lfirst_oid, linitial_node, list_free(), list_length(), LockRelationOid(), make_new_heap(), matview_maintenance_depth, NewGUCNestLevel(), NoLock, RuleLock::numLocks, ObjectAddressSet, PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, pgstat_count_heap_insert(), pgstat_count_truncate(), quote_qualified_identifier(), RangeVarCallbackOwnsTable(), RangeVarGetRelidExtended(), RelationData::rd_rel, RelationData::rd_rules, refresh_by_heap_swap(), refresh_by_match_merge(), refresh_matview_datafill(), RelationGetIndexList(), RelationGetNamespace, RelationGetRelationName, RelationIsPopulated, RuleLock::rules, SECURITY_RESTRICTED_OPERATION, SetMatViewPopulatedState(), SetQueryCompletion(), SetUserIdAndSecContext(), stmt, table_close(), and table_open().
Referenced by ProcessUtilitySlow().
bool MatViewIncrementalMaintenanceIsEnabled | ( | void | ) |
Definition at line 917 of file matview.c.
References matview_maintenance_depth.
Referenced by CheckValidResultRel().
Definition at line 84 of file matview.c.
References Assert(), CatalogTupleUpdate(), CommandCounterIncrement(), elog(), ERROR, GETSTRUCT, heap_freetuple(), HeapTupleIsValid, newstate(), ObjectIdGetDatum(), RelationData::rd_rel, RelationGetRelid, RELOID, RowExclusiveLock, SearchSysCacheCopy1, HeapTupleData::t_self, table_close(), and table_open().
Referenced by ExecRefreshMatView(), and intorel_startup().