PostgreSQL Source Code git master
|
#include "postgres.h"
#include "access/genam.h"
#include "access/table.h"
#include "access/tableam.h"
#include "verify_common.h"
#include "catalog/index.h"
#include "catalog/pg_am.h"
#include "commands/tablecmds.h"
#include "utils/guc.h"
#include "utils/syscache.h"
Go to the source code of this file.
Functions | |
static bool | amcheck_index_mainfork_expected (Relation rel) |
void | amcheck_lock_relation_and_check (Oid indrelid, Oid am_id, IndexDoCheckCallback check, LOCKMODE lockmode, void *state) |
bool | index_checkable (Relation rel, Oid am_id) |
|
static |
Definition at line 36 of file verify_common.c.
References ereport, errcode(), errmsg(), NOTICE, RelationData::rd_rel, RecoveryInProgress(), and RelationGetRelationName.
Referenced by index_checkable().
void amcheck_lock_relation_and_check | ( | Oid | indrelid, |
Oid | am_id, | ||
IndexDoCheckCallback | check, | ||
LOCKMODE | lockmode, | ||
void * | state | ||
) |
Definition at line 60 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().
Definition at line 159 of file verify_common.c.
References amcheck_index_mainfork_expected(), ereport, errcode(), errdetail(), errmsg(), ERROR, GETSTRUCT(), NameStr, ObjectIdGetDatum(), RelationData::rd_index, RelationData::rd_rel, RELATION_IS_OTHER_TEMP, RelationGetRelationName, and SearchSysCache1().
Referenced by amcheck_lock_relation_and_check().