Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
1c9a1250
Commit
1c9a1250
authored
26 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
OR processing cleanup.
parent
f26e1d39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/executor/nodeIndexscan.c
+26
-23
26 additions, 23 deletions
src/backend/executor/nodeIndexscan.c
src/backend/parser/gram.c
+506
-505
506 additions, 505 deletions
src/backend/parser/gram.c
with
532 additions
and
528 deletions
src/backend/executor/nodeIndexscan.c
+
26
−
23
View file @
1c9a1250
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.2
2
1998/08/0
3
1
9
:4
1:29
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.2
3
1998/08/0
4
1
8
:4
2:38
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -269,33 +269,36 @@ ExecIndexReScan(IndexScan *node, ExprContext *exprCtxt, Plan *parent)
{
qual
=
nth
(
i
,
indxqual
);
n_keys
=
numScanKeys
[
i
];
run_keys
=
(
int
*
)
runtimeKeyInfo
[
i
];
scan_keys
=
(
ScanKey
)
scanKeys
[
i
];
for
(
j
=
0
;
j
<
n_keys
;
j
++
)
if
(
runtimeKeyInfo
)
{
/*
* If we have a run-time key, then extract the run-time
* expression and evaluate it with respect to the current
* outer tuple. We then stick the result into the scan key.
*/
if
(
run_keys
[
j
]
!=
NO_OP
)
run_keys
=
(
int
*
)
runtimeKeyInfo
[
i
];
for
(
j
=
0
;
j
<
n_keys
;
j
++
)
{
clause
=
nth
(
j
,
qual
);
scanexpr
=
(
run_keys
[
j
]
==
RIGHT_OP
)
?
(
Node
*
)
get_rightop
(
clause
)
:
(
Node
*
)
get_leftop
(
clause
);
/*
* pass in isDone but ignore it. We don't iterate in
* quals
* If we have a run-time key, then extract the run-time
* expression and evaluate it with respect to the current
* outer tuple. We then stick the result into the scan key.
*/
scanvalue
=
(
Datum
)
ExecEvalExpr
(
scanexpr
,
exprCtxt
,
&
isNull
,
&
isDone
);
scan_keys
[
j
].
sk_argument
=
scanvalue
;
if
(
isNull
)
scan_keys
[
j
].
sk_flags
|=
SK_ISNULL
;
else
scan_keys
[
j
].
sk_flags
&=
~
SK_ISNULL
;
if
(
run_keys
[
j
]
!=
NO_OP
)
{
clause
=
nth
(
j
,
qual
);
scanexpr
=
(
run_keys
[
j
]
==
RIGHT_OP
)
?
(
Node
*
)
get_rightop
(
clause
)
:
(
Node
*
)
get_leftop
(
clause
);
/*
* pass in isDone but ignore it. We don't iterate in
* quals
*/
scanvalue
=
(
Datum
)
ExecEvalExpr
(
scanexpr
,
exprCtxt
,
&
isNull
,
&
isDone
);
scan_keys
[
j
].
sk_argument
=
scanvalue
;
if
(
isNull
)
scan_keys
[
j
].
sk_flags
|=
SK_ISNULL
;
else
scan_keys
[
j
].
sk_flags
&=
~
SK_ISNULL
;
}
}
}
sdesc
=
scanDescs
[
i
];
...
...
This diff is collapsed.
Click to expand it.
src/backend/parser/gram.c
+
506
−
505
View file @
1c9a1250
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment