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
a5537608
Commit
a5537608
authored
Feb 06, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimizer cleanup.
parent
ead64f31
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
21 deletions
+22
-21
src/backend/nodes/equalfuncs.c
src/backend/nodes/equalfuncs.c
+1
-2
src/backend/optimizer/path/joinutils.c
src/backend/optimizer/path/joinutils.c
+3
-3
src/backend/optimizer/path/mergeutils.c
src/backend/optimizer/path/mergeutils.c
+2
-2
src/backend/optimizer/util/ordering.c
src/backend/optimizer/util/ordering.c
+10
-8
src/backend/optimizer/util/pathnode.c
src/backend/optimizer/util/pathnode.c
+3
-3
src/include/optimizer/ordering.h
src/include/optimizer/ordering.h
+3
-3
No files found.
src/backend/nodes/equalfuncs.c
View file @
a5537608
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.2
3 1999/02/04 01:46:54
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.2
4 1999/02/06 17:29:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -344,7 +344,6 @@ _equalPath(Path *a, Path *b)
if
(
a
->
p_ordering
.
ord
.
sortop
==
NULL
||
b
->
p_ordering
.
ord
.
sortop
==
NULL
)
{
if
(
a
->
p_ordering
.
ord
.
sortop
!=
b
->
p_ordering
.
ord
.
sortop
)
return
false
;
}
...
...
src/backend/optimizer/path/joinutils.c
View file @
a5537608
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/joinutils.c,v 1.
9 1999/02/03 21:16:27
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/joinutils.c,v 1.
10 1999/02/06 17:29:26
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -218,8 +218,8 @@ match_paths_joinkeys(List *joinkeys,
key_match
=
every_func
(
joinkeys
,
path
->
keys
,
which_subkey
);
if
(
equal_path_
path_
ordering
(
ordering
,
&
path
->
p_ordering
)
&&
if
(
equal_path_ordering
(
ordering
,
&
path
->
p_ordering
)
&&
length
(
joinkeys
)
==
length
(
path
->
keys
)
&&
key_match
)
{
...
...
src/backend/optimizer/path/mergeutils.c
View file @
a5537608
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/mergeutils.c,v 1.1
2 1999/02/04 03:19:09
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/mergeutils.c,v 1.1
3 1999/02/06 17:29:26
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -115,7 +115,7 @@ match_order_mergeinfo(PathOrder *ordering, List *mergeinfo_list)
xmergeorder
=
mergeinfo
->
m_ordering
;
if
((
ordering
->
ordtype
==
MERGE_ORDER
&&
equal_merge_
merge_
ordering
(
ordering
->
ord
.
merge
,
xmergeorder
))
||
equal_merge_ordering
(
ordering
->
ord
.
merge
,
xmergeorder
))
||
(
ordering
->
ordtype
==
SORTOP_ORDER
&&
equal_path_merge_ordering
(
ordering
->
ord
.
sortop
,
xmergeorder
)))
{
...
...
src/backend/optimizer/util/ordering.c
View file @
a5537608
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/ordering.c,v 1.1
0 1999/02/05 19:59:30
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/Attic/ordering.c,v 1.1
1 1999/02/06 17:29:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -21,13 +21,13 @@
static
bool
equal_sortops_order
(
Oid
*
ordering1
,
Oid
*
ordering2
);
/*
* equal-path-
path-
ordering--
* equal-path-ordering--
* Returns t iff two path orderings are equal.
*
*/
bool
equal_path_
path_
ordering
(
PathOrder
*
path_ordering1
,
PathOrder
*
path_ordering2
)
equal_path_ordering
(
PathOrder
*
path_ordering1
,
PathOrder
*
path_ordering2
)
{
if
(
path_ordering1
==
path_ordering2
)
return
true
;
...
...
@@ -83,20 +83,22 @@ equal_path_merge_ordering(Oid *path_ordering,
}
/*
* equal-merge-
merge-
ordering--
* equal-merge-ordering--
* Returns t iff two merge orderings are equal.
*
*/
bool
equal_merge_
merge_
ordering
(
MergeOrder
*
merge_ordering1
,
equal_merge_ordering
(
MergeOrder
*
merge_ordering1
,
MergeOrder
*
merge_ordering2
)
{
return
equal
(
merge_ordering1
,
merge_ordering2
);
}
/*****************************************************************************
/*
* sortops
*
*
****************************************************************************
/
*/
/*
* equal_sort_ops_order -
...
...
src/backend/optimizer/util/pathnode.c
View file @
a5537608
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.1
8 1999/02/04 19:20:12
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/pathnode.c,v 1.1
9 1999/02/06 17:29:27
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -165,8 +165,8 @@ better_path(Path *new_path, List *unique_paths, bool *noOther)
path
=
(
Path
*
)
lfirst
(
temp
);
if
(
samekeys
(
path
->
keys
,
new_path
->
keys
)
&&
equal_path_
path_
ordering
(
&
path
->
p_ordering
,
&
new_path
->
p_ordering
))
equal_path_ordering
(
&
path
->
p_ordering
,
&
new_path
->
p_ordering
))
{
old_path
=
path
;
break
;
...
...
src/include/optimizer/ordering.h
View file @
a5537608
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: ordering.h,v 1.
9 1998/09/01 04:37:12
momjian Exp $
* $Id: ordering.h,v 1.
10 1999/02/06 17:29:30
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,11 +15,11 @@
#include <nodes/relation.h>
extern
bool
equal_path_
path_
ordering
(
PathOrder
*
path_ordering1
,
extern
bool
equal_path_ordering
(
PathOrder
*
path_ordering1
,
PathOrder
*
path_ordering2
);
extern
bool
equal_path_merge_ordering
(
Oid
*
path_ordering
,
MergeOrder
*
merge_ordering
);
extern
bool
equal_merge_
merge_
ordering
(
MergeOrder
*
merge_ordering1
,
extern
bool
equal_merge_ordering
(
MergeOrder
*
merge_ordering1
,
MergeOrder
*
merge_ordering2
);
#endif
/* ORDERING_H */
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