mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 17:11:15 +02:00
Update find_typedefs for bsdi 4.0.
This commit is contained in:
parent
f859c81c18
commit
d5a785cd5a
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.17 1999/02/10 03:52:40 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/joinpath.c,v 1.18 1999/02/10 17:14:30 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/joinutils.c,v 1.14 1999/02/10 03:52:40 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/Attic/joinutils.c,v 1.15 1999/02/10 17:14:30 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -30,9 +30,8 @@ static int match_pathkey_joinkeys(List *pathkey, List *joinkeys,
|
|||||||
int which_subkey);
|
int which_subkey);
|
||||||
static bool every_func(List *joinkeys, List *pathkey,
|
static bool every_func(List *joinkeys, List *pathkey,
|
||||||
int which_subkey);
|
int which_subkey);
|
||||||
static List *new_join_pathkey(List *subkeys,
|
static List *new_join_pathkey(List *subkeys, List *considered_subkeys,
|
||||||
List *considered_subkeys, List *join_rel_tlist,
|
List *join_rel_tlist, List *joinclauses);
|
||||||
List *joinclauses);
|
|
||||||
static List *new_matching_subkeys(Var *subkey, List *considered_subkeys,
|
static List *new_matching_subkeys(Var *subkey, List *considered_subkeys,
|
||||||
List *join_rel_tlist, List *joinclauses);
|
List *join_rel_tlist, List *joinclauses);
|
||||||
|
|
||||||
@ -219,8 +218,7 @@ match_paths_joinkeys(List *joinkeys,
|
|||||||
key_match = every_func(joinkeys, path->pathkeys, which_subkey);
|
key_match = every_func(joinkeys, path->pathkeys, which_subkey);
|
||||||
|
|
||||||
if (equal_path_ordering(ordering, path->path_order) &&
|
if (equal_path_ordering(ordering, path->path_order) &&
|
||||||
length(joinkeys) == length(path->pathkeys) &&
|
length(joinkeys) == length(path->pathkeys) && key_match)
|
||||||
key_match)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
if (matched_path)
|
if (matched_path)
|
||||||
@ -273,7 +271,7 @@ extract_path_keys(List *joinkeys,
|
|||||||
key = (Var *) matching_tlvar(var, tlist);
|
key = (Var *) matching_tlvar(var, tlist);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* include it in the pathkeys list if we haven't already done so
|
* Include it in the pathkeys list if we haven't already done so
|
||||||
*/
|
*/
|
||||||
foreach(p, pathkeys)
|
foreach(p, pathkeys)
|
||||||
{
|
{
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.41 1999/02/10 03:52:44 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/createplan.c,v 1.42 1999/02/10 17:14:30 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
# For this program to work, you must have compiled all binaries with
|
# For this program to work, you must have compiled all binaries with
|
||||||
# debugging symbols.
|
# debugging symbols.
|
||||||
#
|
#
|
||||||
# This is run on BSD/OS 3.0, so you may need to make changes for your
|
# This is run on BSD/OS 4.0, so you may need to make changes.
|
||||||
# version of nm.
|
|
||||||
#
|
#
|
||||||
# Ignore the nm errors about a file not being a binary file.
|
# 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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nm -a "$1"/* |
|
objdump --stabs "$1"/* |
|
||||||
grep LSYM |
|
grep "LSYM" |
|
||||||
|
awk '{print $7}' |
|
||||||
grep ':t' |
|
grep ':t' |
|
||||||
sed 's/^.*LSYM \([^:]*\):.*$/\1/' |
|
sed 's/^\([^:]*\).*$/\1/' |
|
||||||
grep -v ' ' | # some typedefs have spaces, revove them
|
grep -v ' ' | # some typedefs have spaces, remove them
|
||||||
sort |
|
sort |
|
||||||
uniq
|
uniq
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user