Skip to content

Commit ea8adfc

Browse files
committed
Added querylimit patch...
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1 parent aceac3a commit ea8adfc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/backend/executor/execMain.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
*
2828
* IDENTIFICATION
29-
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.3 1996/09/10 06:48:01 scrappy Exp $
29+
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.4 1996/09/19 19:57:18 scrappy Exp $
3030
*
3131
*-------------------------------------------------------------------------
3232
*/
@@ -62,6 +62,18 @@ static void ExecReplace(TupleTableSlot *slot, ItemPointer tupleid,
6262

6363
/* end of local decls */
6464

65+
#ifdef QUERY_LIMIT
66+
static int queryLimit = ALL_TUPLES;
67+
#undef ALL_TUPLES
68+
#define ALL_TUPLES queryLimit
69+
70+
int
71+
ExecutorLimit(int limit)
72+
{
73+
return queryLimit = limit;
74+
}
75+
#endif
76+
6577
/* ----------------------------------------------------------------
6678
* ExecutorStart
6779
*

0 commit comments

Comments
 (0)