diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-07-29 16:46:58 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-07-29 16:59:33 +1200 |
commit | cb04ad498551dcdb91a834c2e8730cdf0b77e70a (patch) | |
tree | 2079a9e2825f8db93e8c86ce1415f004f4c773a5 /src/include/access/syncscan.h | |
parent | c49c74d19241b1fc8da6c215ebb40fd6b71c1bff (diff) | |
download | postgresql-cb04ad498551dcdb91a834c2e8730cdf0b77e70a.tar.gz postgresql-cb04ad498551dcdb91a834c2e8730cdf0b77e70a.zip |
Move syncscan.c to src/backend/access/common.
Since the tableam.c code needs to make use of the syncscan.c routines
itself, and since other block-oriented AMs might also want to use it one
day, it didn't make sense for it to live under src/backend/access/heap.
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKGLCnG%3DNEAByg6bk%2BCT9JZD97Y%3DAxKhh27Su9FeGWOKvDg%40mail.gmail.com
Diffstat (limited to 'src/include/access/syncscan.h')
-rw-r--r-- | src/include/access/syncscan.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/access/syncscan.h b/src/include/access/syncscan.h new file mode 100644 index 00000000000..7cbf63c399f --- /dev/null +++ b/src/include/access/syncscan.h @@ -0,0 +1,25 @@ +/*------------------------------------------------------------------------- + * + * syncscan.h + * POSTGRES synchronous scan support functions. + * + * + * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group + * 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" + +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 |