2020-07-29 00:46:58 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
|
|
|
|
* syncscan.h
|
|
|
|
|
* POSTGRES synchronous scan support functions.
|
|
|
|
|
*
|
|
|
|
|
*
|
2025-01-01 11:21:55 -05:00
|
|
|
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
|
2020-07-29 00:46:58 -04:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
|
*
|
|
|
|
|
* src/include/access/syncscan.h
|
|
|
|
|
*
|
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
#ifndef SYNCSCAN_H
|
|
|
|
|
#define SYNCSCAN_H
|
|
|
|
|
|
|
|
|
|
#include "storage/block.h"
|
|
|
|
|
#include "utils/relcache.h"
|
|
|
|
|
|
2024-07-24 00:21:39 -04:00
|
|
|
/* GUC variables */
|
|
|
|
|
#ifdef TRACE_SYNCSCAN
|
|
|
|
|
extern PGDLLIMPORT bool trace_syncscan;
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-07-29 00:46:58 -04:00
|
|
|
extern void ss_report_location(Relation rel, BlockNumber location);
|
|
|
|
|
extern BlockNumber ss_get_location(Relation rel, BlockNumber relnblocks);
|
|
|
|
|
extern void SyncScanShmemInit(void);
|
|
|
|
|
extern Size SyncScanShmemSize(void);
|
|
|
|
|
|
|
|
|
|
#endif
|