aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor/nodeLimit.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-10-26 21:38:24 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-10-26 21:38:24 +0000
commit2f35b4efdbec6c161ca9bd491d6345134910c425 (patch)
tree2424351bcc12a8ddf2b716b28f53d2c37c79e507 /src/include/executor/nodeLimit.h
parentc9476bafdb1b97d0d21d92788f93298962145479 (diff)
downloadpostgresql-2f35b4efdbec6c161ca9bd491d6345134910c425.tar.gz
postgresql-2f35b4efdbec6c161ca9bd491d6345134910c425.zip
Re-implement LIMIT/OFFSET as a plan node type, instead of a hack in
ExecutorRun. This allows LIMIT to work in a view. Also, LIMIT in a cursor declaration will behave in a reasonable fashion, whereas before it was overridden by the FETCH count.
Diffstat (limited to 'src/include/executor/nodeLimit.h')
-rw-r--r--src/include/executor/nodeLimit.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/executor/nodeLimit.h b/src/include/executor/nodeLimit.h
new file mode 100644
index 00000000000..4ed16545fcf
--- /dev/null
+++ b/src/include/executor/nodeLimit.h
@@ -0,0 +1,25 @@
+/*-------------------------------------------------------------------------
+ *
+ * nodeLimit.h
+ *
+ *
+ *
+ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * $Id: nodeLimit.h,v 1.1 2000/10/26 21:38:03 tgl Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef NODELIMIT_H
+#define NODELIMIT_H
+
+#include "nodes/plannodes.h"
+
+extern TupleTableSlot *ExecLimit(Limit *node);
+extern bool ExecInitLimit(Limit *node, EState *estate, Plan *parent);
+extern int ExecCountSlotsLimit(Limit *node);
+extern void ExecEndLimit(Limit *node);
+extern void ExecReScanLimit(Limit *node, ExprContext *exprCtxt, Plan *parent);
+
+#endif /* NODELIMIT_H */