|
PostgreSQL Source Code git master
|
#include "storage/bufpage.h"#include "storage/lmgr.h"#include "storage/lockdefs.h"#include "utils/relcache.h"#include "miscadmin.h"

Go to the source code of this file.
Typedefs | |
| typedef void(* | IndexDoCheckCallback) (Relation rel, Relation heaprel, void *state, bool readonly) |
Functions | |
| void | amcheck_lock_relation_and_check (Oid indrelid, Oid am_id, IndexDoCheckCallback check, LOCKMODE lockmode, void *state) |
Definition at line 20 of file verify_common.h.
| void amcheck_lock_relation_and_check | ( | Oid | indrelid, |
| Oid | am_id, | ||
| IndexDoCheckCallback | check, | ||
| LOCKMODE | lockmode, | ||
| void * | state | ||
| ) |
Definition at line 62 of file verify_common.c.
References AtEOXact_GUC(), ereport, errcode(), ERRCODE_UNDEFINED_TABLE, errmsg(), ERROR, GetUserIdAndSecContext(), index_checkable(), index_close(), index_open(), IndexGetRelation(), InvalidOid, NewGUCNestLevel(), OidIsValid, RelationData::rd_rel, RelationGetRelationName, SECURITY_RESTRICTED_OPERATION, SetUserIdAndSecContext(), ShareLock, table_close(), and table_open().
Referenced by bt_index_check(), bt_index_parent_check(), and gin_index_check().