mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Commit d70b17636d
introduced the IndexCheckableCallback typedef for
a callback function, but it was never used. This commit removes
the unused typedef to clean up dead code.
Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru>
Discussion: https://postgr.es/m/e1ea4e14-3b21-4e01-a5f2-0686883265df@oss.nttdata.com
31 lines
901 B
C
31 lines
901 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* amcheck.h
|
|
* Shared routines for amcheck verifications.
|
|
*
|
|
* Copyright (c) 2016-2025, PostgreSQL Global Development Group
|
|
*
|
|
* IDENTIFICATION
|
|
* contrib/amcheck/amcheck.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#include "storage/bufpage.h"
|
|
#include "storage/lmgr.h"
|
|
#include "storage/lockdefs.h"
|
|
#include "utils/relcache.h"
|
|
#include "miscadmin.h"
|
|
|
|
/* Typedef for callback function for amcheck_lock_relation_and_check */
|
|
typedef void (*IndexDoCheckCallback) (Relation rel,
|
|
Relation heaprel,
|
|
void *state,
|
|
bool readonly);
|
|
|
|
extern void amcheck_lock_relation_and_check(Oid indrelid,
|
|
Oid am_id,
|
|
IndexDoCheckCallback check,
|
|
LOCKMODE lockmode, void *state);
|
|
|
|
extern bool index_checkable(Relation rel, Oid am_id);
|