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
bef76402
Commit
bef76402
authored
May 11, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix oversights in processing of LIMIT expressions during planning.
parent
1697568d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
src/backend/optimizer/plan/setrefs.c
src/backend/optimizer/plan/setrefs.c
+10
-2
src/backend/optimizer/plan/subselect.c
src/backend/optimizer/plan/subselect.c
+8
-2
No files found.
src/backend/optimizer/plan/setrefs.c
View file @
bef76402
...
...
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/optimizer/plan/setrefs.c,v 1.10
0 2004/01/06 04:31:01
tgl Exp $
* $PostgreSQL: pgsql/src/backend/optimizer/plan/setrefs.c,v 1.10
1 2004/05/11 13:15:15
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -171,7 +171,6 @@ set_plan_references(Plan *plan, List *rtable)
case
T_Sort
:
case
T_Unique
:
case
T_SetOp
:
case
T_Limit
:
/*
* These plan types don't actually bother to evaluate their
...
...
@@ -184,6 +183,15 @@ set_plan_references(Plan *plan, List *rtable)
* the plan tree!
*/
break
;
case
T_Limit
:
/*
* Like the plan types above, Limit doesn't evaluate its
* tlist or quals. It does have live expressions for
* limit/offset, however.
*/
fix_expr_references
(
plan
,
((
Limit
*
)
plan
)
->
limitOffset
);
fix_expr_references
(
plan
,
((
Limit
*
)
plan
)
->
limitCount
);
break
;
case
T_Agg
:
case
T_Group
:
set_uppernode_references
(
plan
,
(
Index
)
0
);
...
...
src/backend/optimizer/plan/subselect.c
View file @
bef76402
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/optimizer/plan/subselect.c,v 1.8
8 2004/02/03 17:34:03
tgl Exp $
* $PostgreSQL: pgsql/src/backend/optimizer/plan/subselect.c,v 1.8
9 2004/05/11 13:15:15
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1063,6 +1063,13 @@ finalize_plan(Plan *plan, List *rtable,
&
context
);
break
;
case
T_Limit
:
finalize_primnode
(((
Limit
*
)
plan
)
->
limitOffset
,
&
context
);
finalize_primnode
(((
Limit
*
)
plan
)
->
limitCount
,
&
context
);
break
;
case
T_Hash
:
case
T_Agg
:
case
T_SeqScan
:
...
...
@@ -1070,7 +1077,6 @@ finalize_plan(Plan *plan, List *rtable,
case
T_Sort
:
case
T_Unique
:
case
T_SetOp
:
case
T_Limit
:
case
T_Group
:
break
;
...
...
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