mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
This allows us to add stack-depth checks the first time an executor
node is called, and skip that overhead on following
calls. Additionally it yields a nice speedup.
While it'd probably have been a good idea to have that check all
along, it has become more important after the new expression
evaluation framework in b8d7f053c5
- there's no stack depth
check in common paths anymore now. We previously relied on
ExecEvalExpr() being executed somewhere.
We should move towards that model for further routines, but as this is
required for v10, it seems better to only do the necessary (which
already is quite large).
Author: Andres Freund, Tom Lane
Reported-By: Julien Rouhaud
Discussion:
https://postgr.es/m/22833.1490390175@sss.pgh.pa.us
https://postgr.es/m/b0af9eaa-130c-60d0-9e4e-7a135b1e0c76@dalibo.com
24 lines
720 B
C
24 lines
720 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* nodeWindowAgg.h
|
|
* prototypes for nodeWindowAgg.c
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/executor/nodeWindowAgg.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef NODEWINDOWAGG_H
|
|
#define NODEWINDOWAGG_H
|
|
|
|
#include "nodes/execnodes.h"
|
|
|
|
extern WindowAggState *ExecInitWindowAgg(WindowAgg *node, EState *estate, int eflags);
|
|
extern void ExecEndWindowAgg(WindowAggState *node);
|
|
extern void ExecReScanWindowAgg(WindowAggState *node);
|
|
|
|
#endif /* NODEWINDOWAGG_H */
|