File tree 4 files changed +21
-4
lines changed
4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.48 1998/09/01 04:29:00 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.49 1998/10/22 13:52:20 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -1578,6 +1578,9 @@ _copyQuery(Query *from)
1578
1578
newnode -> unionClause = temp_list ;
1579
1579
}
1580
1580
1581
+ Node_Copy (from , newnode , limitOffset );
1582
+ Node_Copy (from , newnode , limitCount );
1583
+
1581
1584
return newnode ;
1582
1585
}
1583
1586
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.46 1998/09/01 04:29:07 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.47 1998/10/22 13:52:21 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* Every (plan) node in POSTGRES has an associated "out" routine which
@@ -259,6 +259,10 @@ _outQuery(StringInfo str, Query *node)
259
259
appendStringInfo (str , (node -> hasSubLinks ? "true" : "false" ));
260
260
appendStringInfo (str , " :unionClause " );
261
261
_outNode (str , node -> unionClause );
262
+ appendStringInfo (str , " :limitOffset " );
263
+ _outNode (str , node -> limitOffset );
264
+ appendStringInfo (str , " :limitCount " );
265
+ _outNode (str , node -> limitCount );
262
266
}
263
267
264
268
static void
Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.37 1998/09/01 04:29:12 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.38 1998/10/22 13:52:22 momjian Exp $
11
11
*
12
12
* NOTES
13
13
* Most of the read functions for plan nodes are tested. (In fact, they
@@ -163,6 +163,12 @@ _readQuery()
163
163
token = lsptok (NULL , & length ); /* skip :unionClause */
164
164
local_node -> unionClause = nodeRead (true);
165
165
166
+ token = lsptok (NULL , & length ); /* skip :limitOffset */
167
+ local_node -> limitOffset = nodeRead (true);
168
+
169
+ token = lsptok (NULL , & length ); /* skip :limitCount */
170
+ local_node -> limitCount = nodeRead (true);
171
+
166
172
return local_node ;
167
173
}
168
174
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: parsenodes.h,v 1.60 1998/10/02 16:23:07 momjian Exp $
9
+ * $Id: parsenodes.h,v 1.61 1998/10/22 13:52:24 momjian Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -60,6 +60,8 @@ typedef struct Query
60
60
61
61
List * unionClause ; /* unions are linked under the previous
62
62
* query */
63
+ Node * limitOffset ; /* # of result tuples to skip */
64
+ Node * limitCount ; /* # of result tuples to return */
63
65
64
66
/* internal to planner */
65
67
List * base_rel_list ; /* base relation list */
@@ -639,6 +641,8 @@ typedef struct SelectStmt
639
641
char * portalname ; /* the portal (cursor) to create */
640
642
bool binary ; /* a binary (internal) portal? */
641
643
bool unionall ; /* union without unique sort */
644
+ Node * limitOffset ; /* # of result tuples to skip */
645
+ Node * limitCount ; /* # of result tuples to return */
642
646
} SelectStmt ;
643
647
644
648
You can’t perform that action at this time.
0 commit comments