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
d5a785cd
Commit
d5a785cd
authored
Feb 10, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update find_typedefs for bsdi 4.0.
parent
f859c81c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
31 deletions
+30
-31
src/backend/optimizer/path/joinpath.c
src/backend/optimizer/path/joinpath.c
+4
-4
src/backend/optimizer/path/joinutils.c
src/backend/optimizer/path/joinutils.c
+9
-11
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/plan/createplan.c
+9
-9
src/tools/find_typedef
src/tools/find_typedef
+8
-7
No files found.
src/backend/optimizer/path/joinpath.c
View file @
d5a785cd
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.1
7 1999/02/10 03:52:4
0 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.1
8 1999/02/10 17:14:3
0 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -606,11 +606,11 @@ hash_inner_and_outer(RelOptInfo * joinrel,
innerrel
->
size
,
outerrel
->
width
,
innerrel
->
width
,
(
Path
*
)
outerrel
->
cheapestpath
,
(
Path
*
)
innerrel
->
cheapestpath
,
(
Path
*
)
outerrel
->
cheapestpath
,
(
Path
*
)
innerrel
->
cheapestpath
,
hash_pathkeys
,
xhashinfo
->
hashop
,
((
JoinMethod
*
)
xhashinfo
)
->
clauses
,
((
JoinMethod
*
)
xhashinfo
)
->
clauses
,
outerkeys
,
innerkeys
);
hjoin_list
=
lappend
(
hjoin_list
,
temp_node
);
...
...
src/backend/optimizer/path/joinutils.c
View file @
d5a785cd
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/joinutils.c,v 1.1
4 1999/02/10 03:52:4
0 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/joinutils.c,v 1.1
5 1999/02/10 17:14:3
0 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -27,14 +27,13 @@
static
int
match_pathkey_joinkeys
(
List
*
pathkey
,
List
*
joinkeys
,
int
which_subkey
);
int
which_subkey
);
static
bool
every_func
(
List
*
joinkeys
,
List
*
pathkey
,
int
which_subkey
);
static
List
*
new_join_pathkey
(
List
*
subkeys
,
List
*
considered_subkeys
,
List
*
join_rel_tlist
,
List
*
joinclauses
);
int
which_subkey
);
static
List
*
new_join_pathkey
(
List
*
subkeys
,
List
*
considered_subkeys
,
List
*
join_rel_tlist
,
List
*
joinclauses
);
static
List
*
new_matching_subkeys
(
Var
*
subkey
,
List
*
considered_subkeys
,
List
*
join_rel_tlist
,
List
*
joinclauses
);
List
*
join_rel_tlist
,
List
*
joinclauses
);
/****************************************************************************
* KEY COMPARISONS
...
...
@@ -219,8 +218,7 @@ match_paths_joinkeys(List *joinkeys,
key_match
=
every_func
(
joinkeys
,
path
->
pathkeys
,
which_subkey
);
if
(
equal_path_ordering
(
ordering
,
path
->
path_order
)
&&
length
(
joinkeys
)
==
length
(
path
->
pathkeys
)
&&
key_match
)
length
(
joinkeys
)
==
length
(
path
->
pathkeys
)
&&
key_match
)
{
if
(
matched_path
)
...
...
@@ -273,7 +271,7 @@ extract_path_keys(List *joinkeys,
key
=
(
Var
*
)
matching_tlvar
(
var
,
tlist
);
/*
*
i
nclude it in the pathkeys list if we haven't already done so
*
I
nclude it in the pathkeys list if we haven't already done so
*/
foreach
(
p
,
pathkeys
)
{
...
...
@@ -381,7 +379,7 @@ new_join_pathkey(List *subkeys,
else
newly_considered_subkeys
=
matched_subkeys
;
considered_subkeys
=
append
(
considered_subkeys
,
newly_considered_subkeys
);
considered_subkeys
=
append
(
considered_subkeys
,
newly_considered_subkeys
);
t_list
=
nconc
(
t_list
,
newly_considered_subkeys
);
}
...
...
src/backend/optimizer/plan/createplan.c
View file @
d5a785cd
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.4
1 1999/02/10 03:52:44
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.4
2 1999/02/10 17:14:30
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -870,8 +870,8 @@ make_noname(List *tlist,
/* Create a new target list for the noname, with keys set. */
noname_tlist
=
set_noname_tlist_operators
(
new_unsorted_tlist
(
tlist
),
pathkeys
,
operators
);
pathkeys
,
operators
);
switch
(
nonametype
)
{
case
NONAME_SORT
:
...
...
@@ -879,9 +879,9 @@ make_noname(List *tlist,
NIL
,
_NONAME_RELATION_ID_
,
(
Plan
*
)
make_sort
(
noname_tlist
,
_NONAME_RELATION_ID_
,
plan_node
,
length
(
pathkeys
)));
_NONAME_RELATION_ID_
,
plan_node
,
length
(
pathkeys
)));
break
;
case
NONAME_MATERIAL
:
...
...
@@ -889,9 +889,9 @@ make_noname(List *tlist,
NIL
,
_NONAME_RELATION_ID_
,
(
Plan
*
)
make_material
(
noname_tlist
,
_NONAME_RELATION_ID_
,
plan_node
,
length
(
pathkeys
)));
_NONAME_RELATION_ID_
,
plan_node
,
length
(
pathkeys
)));
break
;
default:
...
...
src/tools/find_typedef
View file @
d5a785cd
...
...
@@ -5,8 +5,7 @@
# For this program to work, you must have compiled all binaries with
# debugging symbols.
#
# This is run on BSD/OS 3.0, so you may need to make changes for your
# version of nm.
# This is run on BSD/OS 4.0, so you may need to make changes.
#
# Ignore the nm errors about a file not being a binary file.
#
...
...
@@ -18,10 +17,12 @@ then echo "Usage: $0 postgres_binary_directory" 1>&2
exit
1
fi
nm
-a
"
$1
"
/
*
|
grep
LSYM |
objdump
--stabs
"
$1
"
/
*
|
grep
"LSYM"
|
awk
'{print $7}'
|
grep
':t'
|
sed
's/^
.*LSYM \([^:]*\):
.*$/\1/'
|
grep
-v
' '
|
# some typedefs have spaces, re
v
ove them
sort
|
sed
's/^
\([^:]*\)
.*$/\1/'
|
grep
-v
' '
|
# some typedefs have spaces, re
m
ove them
sort
|
uniq
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