]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Added querylimit patch...
authorMarc G. Fournier <scrappy@hub.org>
Thu, 19 Sep 1996 19:57:18 +0000 (19:57 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 19 Sep 1996 19:57:18 +0000 (19:57 +0000)
Submitted by:  Massimo Dal Zotto <dz@cs.unitn.it>

src/backend/executor/execMain.c

index cb7a5eb8ee997ff0dd5e1f1c04b713466e7e56c3..07a7c12776e61c0644f4a6dc1293c99157d9f366 100644 (file)
@@ -26,7 +26,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.3 1996/09/10 06:48:01 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.4 1996/09/19 19:57:18 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -62,6 +62,18 @@ static void ExecReplace(TupleTableSlot *slot, ItemPointer tupleid,
 
 /* end of local decls */
 
+#ifdef QUERY_LIMIT
+static int queryLimit = ALL_TUPLES;
+#undef ALL_TUPLES
+#define ALL_TUPLES queryLimit
+
+int
+ExecutorLimit(int limit)
+{
+    return queryLimit = limit;
+}
+#endif
+
 /* ----------------------------------------------------------------
  *     ExecutorStart
  *