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
6e2edaf4
Commit
6e2edaf4
authored
Feb 05, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimizer cleanup.
parent
d5db8814
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
28 deletions
+28
-28
src/backend/nodes/copyfuncs.c
src/backend/nodes/copyfuncs.c
+2
-2
src/backend/nodes/outfuncs.c
src/backend/nodes/outfuncs.c
+2
-2
src/backend/nodes/readfuncs.c
src/backend/nodes/readfuncs.c
+3
-3
src/backend/optimizer/path/indxpath.c
src/backend/optimizer/path/indxpath.c
+9
-9
src/backend/optimizer/path/prune.c
src/backend/optimizer/path/prune.c
+3
-3
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/createplan.c
+2
-2
src/backend/optimizer/util/Makefile
src/backend/optimizer/util/Makefile
+2
-2
src/backend/optimizer/util/ordering.c
src/backend/optimizer/util/ordering.c
+2
-2
src/backend/optimizer/util/restrictinfo.c
src/backend/optimizer/util/restrictinfo.c
+1
-1
src/include/nodes/relation.h
src/include/nodes/relation.h
+2
-2
No files found.
src/backend/nodes/copyfuncs.c
View file @
6e2edaf4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.6
1 1999/02/04 03:19:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.6
2 1999/02/05 19:59:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1343,7 +1343,7 @@ _copyRestrictInfo(RestrictInfo * from)
Node_Copy
(
from
,
newnode
,
indexids
);
Node_Copy
(
from
,
newnode
,
mergejoinorder
);
newnode
->
hashjoinoperator
=
from
->
hashjoinoperator
;
newnode
->
cinfojoinid
=
listCopy
(
from
->
c
infojoinid
);
newnode
->
restrictinfojoinid
=
listCopy
(
from
->
restrict
infojoinid
);
return
newnode
;
}
...
...
src/backend/nodes/outfuncs.c
View file @
6e2edaf4
...
...
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: outfuncs.c,v 1.6
4 1999/02/04 01:46:54
momjian Exp $
* $Id: outfuncs.c,v 1.6
5 1999/02/05 19:59:25
momjian Exp $
*
* NOTES
* Every (plan) node in POSTGRES has an associated "out" routine which
...
...
@@ -1107,7 +1107,7 @@ _outMergeOrder(StringInfo str, MergeOrder *node)
static
void
_outRestrictInfo
(
StringInfo
str
,
RestrictInfo
*
node
)
{
appendStringInfo
(
str
,
"
C
INFO :clause "
);
appendStringInfo
(
str
,
"
RESTRICT
INFO :clause "
);
_outNode
(
str
,
node
->
clause
);
appendStringInfo
(
str
,
...
...
src/backend/nodes/readfuncs.c
View file @
6e2edaf4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.4
8 1999/02/04 03:19:06
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/readfuncs.c,v 1.4
9 1999/02/05 19:59:25
momjian Exp $
*
* NOTES
* Most of the read functions for plan nodes are tested. (In fact, they
...
...
@@ -2087,13 +2087,13 @@ parsePlanString(void)
return_value
=
_readJoinKey
();
else
if
(
!
strncmp
(
token
,
"MERGEORDER"
,
length
))
return_value
=
_readMergeOrder
();
else
if
(
!
strncmp
(
token
,
"
CLAUSE
INFO"
,
length
))
else
if
(
!
strncmp
(
token
,
"
RETRICT
INFO"
,
length
))
return_value
=
_readRestrictInfo
();
else
if
(
!
strncmp
(
token
,
"JOINMETHOD"
,
length
))
return_value
=
_readJoinMethod
();
else
if
(
!
strncmp
(
token
,
"JOININFO"
,
length
))
return_value
=
_readJoinInfo
();
else
if
(
!
strncmp
(
token
,
"HINFO"
,
length
))
else
if
(
!
strncmp
(
token
,
"H
ASH
INFO"
,
length
))
return_value
=
_readHashInfo
();
else
if
(
!
strncmp
(
token
,
"ITER"
,
length
))
return_value
=
_readIter
();
...
...
src/backend/optimizer/path/indxpath.c
View file @
6e2edaf4
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.3
7 1999/02/03 21:16
:26 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/indxpath.c,v 1.3
8 1999/02/05 19:59
:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -56,7 +56,7 @@ static List *group_clauses_by_indexkey(RelOptInfo * rel, RelOptInfo * index,
static
List
*
group_clauses_by_ikey_for_joins
(
RelOptInfo
*
rel
,
RelOptInfo
*
index
,
int
*
indexkeys
,
Oid
*
classes
,
List
*
join_cinfo_list
,
List
*
restr_cinfo_list
);
static
RestrictInfo
*
match_clause_to_indexkey
(
RelOptInfo
*
rel
,
RelOptInfo
*
index
,
int
indexkey
,
int
xclass
,
RestrictInfo
*
clause
Info
,
bool
join
);
int
xclass
,
RestrictInfo
*
restrict
Info
,
bool
join
);
static
bool
pred_test
(
List
*
predicate_list
,
List
*
restrictinfo_list
,
List
*
joininfo_list
);
static
bool
one_pred_test
(
Expr
*
predicate
,
List
*
restrictinfo_list
);
...
...
@@ -571,14 +571,14 @@ group_clauses_by_ikey_for_joins(RelOptInfo * rel,
*
*/
static
RestrictInfo
*
match_clause_to_indexkey
(
RelOptInfo
*
rel
,
RelOptInfo
*
index
,
match_clause_to_indexkey
(
RelOptInfo
*
rel
,
RelOptInfo
*
index
,
int
indexkey
,
int
xclass
,
RestrictInfo
*
clause
Info
,
RestrictInfo
*
restrict
Info
,
bool
join
)
{
Expr
*
clause
=
clause
Info
->
clause
;
Expr
*
clause
=
restrict
Info
->
clause
;
Var
*
leftop
,
*
rightop
;
Oid
join_op
=
InvalidOid
;
...
...
@@ -761,7 +761,7 @@ match_clause_to_indexkey(RelOptInfo * rel,
}
if
(
isIndexable
)
return
clause
Info
;
return
restrict
Info
;
return
NULL
;
}
...
...
@@ -1208,7 +1208,7 @@ indexable_joinclauses(RelOptInfo * rel, RelOptInfo * index,
{
List
*
clauses
=
lfirst
(
clausegroups
);
((
RestrictInfo
*
)
lfirst
(
clauses
))
->
c
infojoinid
=
joininfo
->
otherrels
;
((
RestrictInfo
*
)
lfirst
(
clauses
))
->
restrict
infojoinid
=
joininfo
->
otherrels
;
}
cg_list
=
nconc
(
cg_list
,
clausegroups
);
}
...
...
@@ -1298,7 +1298,7 @@ index_innerjoin(Query *root, RelOptInfo * rel, List *clausegroup_list,
pathnode
->
indexkeys
=
index
->
indexkeys
;
pathnode
->
indexqual
=
clausegroup
;
pathnode
->
path
.
joinid
=
((
RestrictInfo
*
)
lfirst
(
clausegroup
))
->
c
infojoinid
;
pathnode
->
path
.
joinid
=
((
RestrictInfo
*
)
lfirst
(
clausegroup
))
->
restrict
infojoinid
;
pathnode
->
path
.
path_cost
=
cost_index
((
Oid
)
lfirsti
(
index
->
relids
),
(
int
)
temp_pages
,
...
...
src/backend/optimizer/path/prune.c
View file @
6e2edaf4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.2
1 1999/02/05 03:43:05 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/prune.c,v 1.2
2 1999/02/05 19:59:26 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -64,9 +64,9 @@ prune_joinrel(RelOptInfo *rel, List *other_rels)
List
*
r1
=
NIL
;
List
*
result
=
NIL
;
foreach
(
r1
,
other_rels
)
foreach
(
i
,
other_rels
)
{
RelOptInfo
*
other_rel
=
(
RelOptInfo
*
)
lfirst
(
r1
);
RelOptInfo
*
other_rel
=
(
RelOptInfo
*
)
lfirst
(
i
);
if
(
same
(
rel
->
relids
,
other_rel
->
relids
))
/*
...
...
src/backend/optimizer/plan/createplan.c
View file @
6e2edaf4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.3
6 1999/02/03 21:16:30
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.3
7 1999/02/05 19:59:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -321,7 +321,7 @@ create_indexscan_node(IndexPath *best_path,
/*
* Extract the(first if conjunct, only if disjunct) clause from the
*
clause
info list.
*
restrict
info list.
*/
Expr
*
index_clause
=
(
Expr
*
)
NULL
;
List
*
indxqual
=
NIL
;
...
...
src/backend/optimizer/util/Makefile
View file @
6e2edaf4
...
...
@@ -4,7 +4,7 @@
# Makefile for optimizer/util
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/optimizer/util/Makefile,v 1.
7 1998/07/20 20:01:4
8 momjian Exp $
# $Header: /cvsroot/pgsql/src/backend/optimizer/util/Makefile,v 1.
8 1999/02/05 19:59:2
8 momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -13,7 +13,7 @@ include ../../../Makefile.global
CFLAGS
+=
-I
../..
OBJS
=
clause
info.o clauses.o indexnode.o plancat.o
\
OBJS
=
restrict
info.o clauses.o indexnode.o plancat.o
\
joininfo.o keys.o ordering.o pathnode.o relnode.o tlist.o var.o
# not ready yet: predmig.o xfunc.o
...
...
src/backend/optimizer/util/ordering.c
View file @
6e2edaf4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/ordering.c,v 1.
9 1999/02/03 21:16:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/ordering.c,v 1.
10 1999/02/05 19:59:30
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -44,7 +44,7 @@ equal_path_path_ordering(PathOrder *path_ordering1,
path_ordering2
->
ordtype
==
SORTOP_ORDER
)
{
return
(
equal_sortops_order
(
path_ordering1
->
ord
.
sortop
,
path_ordering2
->
ord
.
sortop
));
path_ordering2
->
ord
.
sortop
));
}
else
if
(
path_ordering1
->
ordtype
==
MERGE_ORDER
&&
path_ordering2
->
ordtype
==
SORTOP_ORDER
)
...
...
src/backend/optimizer/util/
clause
info.c
→
src/backend/optimizer/util/
restrict
info.c
View file @
6e2edaf4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/
Attic/clauseinfo.c,v 1.11 1999/02/03 21:16:50
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/
restrictinfo.c,v 1.1 1999/02/05 19:59:31
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
src/include/nodes/relation.h
View file @
6e2edaf4
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: relation.h,v 1.1
4 1999/02/04 03:19:10
momjian Exp $
* $Id: relation.h,v 1.1
5 1999/02/05 19:59:31
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -219,7 +219,7 @@ typedef struct RestrictInfo
/* hashjoin only */
Oid
hashjoinoperator
;
Relid
c
infojoinid
;
Relid
restrict
infojoinid
;
}
RestrictInfo
;
typedef
struct
JoinMethod
...
...
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