mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-13 01:47:05 +08:00
Commit 5262f7a4fc44f651241d2ff1fa688dd664a34874 added similar support for parallel index scans; this extends that work to index-only scans. As with parallel index scans, this requires support from the index AM, so currently parallel index-only scans will only be possible for btree indexes. Rafia Sabih, reviewed and tested by Rahila Syed, Tushar Ahuja, and Amit Kapila Discussion: http://postgr.es/m/CAOGQiiPEAs4C=TBp0XShxBvnWXuzGL2u++Hm1=qnCpd6_Mf8Fw@mail.gmail.com
36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeIndexonlyscan.h
|
|
*
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/executor/nodeIndexonlyscan.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef NODEINDEXONLYSCAN_H
|
|
#define NODEINDEXONLYSCAN_H
|
|
|
|
#include "nodes/execnodes.h"
|
|
#include "access/parallel.h"
|
|
|
|
extern IndexOnlyScanState *ExecInitIndexOnlyScan(IndexOnlyScan *node, EState *estate, int eflags);
|
|
extern TupleTableSlot *ExecIndexOnlyScan(IndexOnlyScanState *node);
|
|
extern void ExecEndIndexOnlyScan(IndexOnlyScanState *node);
|
|
extern void ExecIndexOnlyMarkPos(IndexOnlyScanState *node);
|
|
extern void ExecIndexOnlyRestrPos(IndexOnlyScanState *node);
|
|
extern void ExecReScanIndexOnlyScan(IndexOnlyScanState *node);
|
|
|
|
/* Support functions for parallel index-only scans */
|
|
extern void ExecIndexOnlyScanEstimate(IndexOnlyScanState *node,
|
|
ParallelContext *pcxt);
|
|
extern void ExecIndexOnlyScanInitializeDSM(IndexOnlyScanState *node,
|
|
ParallelContext *pcxt);
|
|
extern void ExecIndexOnlyScanInitializeWorker(IndexOnlyScanState *node,
|
|
shm_toc *toc);
|
|
|
|
#endif /* NODEINDEXONLYSCAN_H */
|