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
161be695
Commit
161be695
authored
25 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Update comments for create_indexscan_node().
parent
12c51d9c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/optimizer/plan/createplan.c
+9
-6
9 additions, 6 deletions
src/backend/optimizer/plan/createplan.c
with
9 additions
and
6 deletions
src/backend/optimizer/plan/createplan.c
+
9
−
6
View file @
161be695
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.6
5
1999/07/
29
0
2
:4
8:05
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.6
6
1999/07/
30
0
0
:4
4:23
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -296,10 +296,13 @@ create_seqscan_node(Path *best_path, List *tlist, List *scan_clauses)
* Returns a indexscan node for the base relation scanned by 'best_path'
* with restriction clauses 'scan_clauses' and targetlist 'tlist'.
*
* If an 'or' clause is to be used with this index, the indxqual field
* will contain a list of the 'or' clause arguments, e.g., the
* clause(OR a b c) will generate: ((a) (b) (c)). Otherwise, the
* indxqual will simply contain one conjunctive qualification: ((a)).
* The indexqual of the path contains a sublist of implicitly-ANDed qual
* conditions for each scan of the index(es); if there is more than one
* scan then the retrieved tuple sets are ORed together. The indexqual
* and indexid lists must have the same length, ie, the number of scans
* that will occur. Note it is possible for a qual condition sublist
* to be empty --- then no index restrictions will be applied during that
* scan.
*/
static
IndexScan
*
create_indexscan_node
(
IndexPath
*
best_path
,
...
...
@@ -316,7 +319,7 @@ create_indexscan_node(IndexPath *best_path,
/* there should be exactly one base rel involved... */
Assert
(
length
(
best_path
->
path
.
parent
->
relids
)
==
1
);
/* check and see if any indices are lossy */
/* check and see if any
of the
indices are lossy */
foreach
(
ixid
,
best_path
->
indexid
)
{
HeapTuple
indexTuple
;
...
...
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