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
5b4ca671
Commit
5b4ca671
authored
Jul 19, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Conditionally execute Junk filter only when ORDER BY of columns
not in target list.
parent
62cd6e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
10 deletions
+30
-10
src/backend/executor/execMain.c
src/backend/executor/execMain.c
+30
-10
No files found.
src/backend/executor/execMain.c
View file @
5b4ca671
...
...
@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.4
8 1998/06/15 19:28:1
9 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.4
9 1998/07/19 03:46:2
9 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -522,18 +522,38 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate)
* SELECT added by daveh@insightdist.com 5/20/98 to allow
* ORDER/GROUP BY have an identifier missing from the target.
*/
if
(
operation
==
CMD_UPDATE
||
operation
==
CMD_DELETE
||
operation
==
CMD_INSERT
||
operation
==
CMD_SELECT
)
{
JunkFilter
*
j
=
(
JunkFilter
*
)
ExecInitJunkFilter
(
targetList
)
;
estate
->
es_junkFilter
=
j
;
bool
junk_filter_needed
=
false
;
List
*
tlist
;
if
(
operation
==
CMD_SELECT
)
tupType
=
j
->
jf_cleanTupType
;
}
else
estate
->
es_junkFilter
=
NULL
;
{
foreach
(
tlist
,
targetList
)
{
TargetEntry
*
tle
=
lfirst
(
tlist
);
if
(
tle
->
resdom
->
resjunk
)
{
junk_filter_needed
=
true
;
break
;
}
}
}
if
(
operation
==
CMD_UPDATE
||
operation
==
CMD_DELETE
||
operation
==
CMD_INSERT
||
(
operation
==
CMD_SELECT
&&
junk_filter_needed
))
{
JunkFilter
*
j
=
(
JunkFilter
*
)
ExecInitJunkFilter
(
targetList
);
estate
->
es_junkFilter
=
j
;
if
(
operation
==
CMD_SELECT
)
tupType
=
j
->
jf_cleanTupType
;
}
else
estate
->
es_junkFilter
=
NULL
;
}
/* ----------------
* initialize the "into" relation
* ----------------
...
...
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