Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
002657f7
Commit
002657f7
authored
Oct 22, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add LIMIT syntax for Jan.
parent
ca2995be
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
4 deletions
+21
-4
src/backend/nodes/copyfuncs.c
src/backend/nodes/copyfuncs.c
+4
-1
src/backend/nodes/outfuncs.c
src/backend/nodes/outfuncs.c
+5
-1
src/backend/nodes/readfuncs.c
src/backend/nodes/readfuncs.c
+7
-1
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+5
-1
No files found.
src/backend/nodes/copyfuncs.c
View file @
002657f7
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.4
8 1998/09/01 04:29:0
0 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.4
9 1998/10/22 13:52:2
0 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1578,6 +1578,9 @@ _copyQuery(Query *from)
newnode
->
unionClause
=
temp_list
;
}
Node_Copy
(
from
,
newnode
,
limitOffset
);
Node_Copy
(
from
,
newnode
,
limitCount
);
return
newnode
;
}
...
...
src/backend/nodes/outfuncs.c
View file @
002657f7
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.4
6 1998/09/01 04:29:07
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.4
7 1998/10/22 13:52:21
momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
...
...
@@ -259,6 +259,10 @@ _outQuery(StringInfo str, Query *node)
appendStringInfo
(
str
,
(
node
->
hasSubLinks
?
"true"
:
"false"
));
appendStringInfo
(
str
,
" :unionClause "
);
_outNode
(
str
,
node
->
unionClause
);
appendStringInfo
(
str
,
" :limitOffset "
);
_outNode
(
str
,
node
->
limitOffset
);
appendStringInfo
(
str
,
" :limitCount "
);
_outNode
(
str
,
node
->
limitCount
);
}
static
void
...
...
src/backend/nodes/readfuncs.c
View file @
002657f7
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.3
7 1998/09/01 04:29:1
2 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.3
8 1998/10/22 13:52:2
2 momjian Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
...
...
@@ -163,6 +163,12 @@ _readQuery()
token
=
lsptok
(
NULL
,
&
length
);
/* skip :unionClause */
local_node
->
unionClause
=
nodeRead
(
true
);
token
=
lsptok
(
NULL
,
&
length
);
/* skip :limitOffset */
local_node
->
limitOffset
=
nodeRead
(
true
);
token
=
lsptok
(
NULL
,
&
length
);
/* skip :limitCount */
local_node
->
limitCount
=
nodeRead
(
true
);
return
local_node
;
}
...
...
src/include/nodes/parsenodes.h
View file @
002657f7
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: parsenodes.h,v 1.6
0 1998/10/02 16:23:07
momjian Exp $
* $Id: parsenodes.h,v 1.6
1 1998/10/22 13:52:24
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -60,6 +60,8 @@ typedef struct Query
List
*
unionClause
;
/* unions are linked under the previous
* query */
Node
*
limitOffset
;
/* # of result tuples to skip */
Node
*
limitCount
;
/* # of result tuples to return */
/* internal to planner */
List
*
base_rel_list
;
/* base relation list */
...
...
@@ -639,6 +641,8 @@ typedef struct SelectStmt
char
*
portalname
;
/* the portal (cursor) to create */
bool
binary
;
/* a binary (internal) portal? */
bool
unionall
;
/* union without unique sort */
Node
*
limitOffset
;
/* # of result tuples to skip */
Node
*
limitCount
;
/* # of result tuples to return */
}
SelectStmt
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment