1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-25 20:23:07 +03:00

Turns out OIDNAMELEN wasn't really being used at all!

Get rid of it to make customization of NAMEDATALEN easier.
This commit is contained in:
Tom Lane
1999-06-04 21:12:07 +00:00
parent 7b5f84d12d
commit 1c3c080534
3 changed files with 6 additions and 15 deletions

View File

@@ -10,7 +10,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.2 1998/10/28 19:38:46 tgl Exp $
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.3 1999/06/04 21:12:06 tgl Exp $
#
# NOTES
# non-essential whitespace is removed from the generated file.
@@ -52,9 +52,8 @@ while test $x -le $numargs ; do
shift
done
# Get NAMEDATALEN and OIDNAMELEN from postgres_ext.h
# Get NAMEDATALEN from postgres_ext.h
NAMEDATALEN=`grep '#define.*NAMEDATALEN' ../../include/postgres_ext.h | awk '{ print $3 }'`
OIDNAMELEN=`grep '#define.*OIDNAMELEN' ../../include/postgres_ext.h | awk '{ print $3 }'`
# ----------------
# strip comments and trash from .h before we generate
@@ -80,9 +79,8 @@ sed -e "s/;[ ]*$//g" \
-e "s/^NameData/\name/g" \
-e "s/(NameData/(name/g" \
-e "s/(Oid/(oid/g" \
-e "s/NAMEDATALEN/$NAMEDATALEN/g" \
-e "s/OIDNAMELEN/$OIDNAMELEN/g" | \
awk '
-e "s/NAMEDATALEN/$NAMEDATALEN/g" \
| awk '
# ----------------
# now use awk to process remaining .h file..
#