Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1c3c080

Browse files
committed
Turns out OIDNAMELEN wasn't really being used at all!
Get rid of it to make customization of NAMEDATALEN easier.
1 parent 7b5f84d commit 1c3c080

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

src/backend/catalog/genbki.sh.in

+4-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
#
1212
# IDENTIFICATION
13-
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.2 1998/10/28 19:38:46 tgl Exp $
13+
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.3 1999/06/04 21:12:06 tgl Exp $
1414
#
1515
# NOTES
1616
# non-essential whitespace is removed from the generated file.
@@ -52,9 +52,8 @@ while test $x -le $numargs ; do
5252
shift
5353
done
5454

55-
# Get NAMEDATALEN and OIDNAMELEN from postgres_ext.h
55+
# Get NAMEDATALEN from postgres_ext.h
5656
NAMEDATALEN=`grep '#define.*NAMEDATALEN' ../../include/postgres_ext.h | awk '{ print $3 }'`
57-
OIDNAMELEN=`grep '#define.*OIDNAMELEN' ../../include/postgres_ext.h | awk '{ print $3 }'`
5857

5958
# ----------------
6059
# strip comments and trash from .h before we generate
@@ -80,9 +79,8 @@ sed -e "s/;[ ]*$//g" \
8079
-e "s/^NameData/\name/g" \
8180
-e "s/(NameData/(name/g" \
8281
-e "s/(Oid/(oid/g" \
83-
-e "s/NAMEDATALEN/$NAMEDATALEN/g" \
84-
-e "s/OIDNAMELEN/$OIDNAMELEN/g" | \
85-
awk '
82+
-e "s/NAMEDATALEN/$NAMEDATALEN/g" \
83+
| awk '
8684
# ----------------
8785
# now use awk to process remaining .h file..
8886
#

src/bin/initlocation/Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.6 1998/08/22 05:19:25 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.7 1999/06/04 21:12:06 tgl Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

1414
SRCDIR= ../..
1515
include ../../Makefile.global
1616

17-
SEDSCRIPT= \
18-
-e "s^PG_OPT_NAMEDATALEN_PARAM^$(NAMEDATALEN)^g" \
19-
-e "s^PG_OPT_OIDNAMELEN_PARAM^$(OIDNAMELEN)^g"
20-
2117
all: initlocation
2218

2319
initlocation: initlocation.sh

src/include/postgres_ext.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* use header files that are otherwise internal to Postgres to interface
1717
* with the backend.
1818
*
19-
* $Id: postgres_ext.h,v 1.3 1999/02/13 23:20:47 momjian Exp $
19+
* $Id: postgres_ext.h,v 1.4 1999/06/04 21:12:07 tgl Exp $
2020
*
2121
*-------------------------------------------------------------------------
2222
*/
@@ -33,7 +33,4 @@ typedef unsigned int Oid;
3333
*/
3434
#define NAMEDATALEN 32
3535

36-
/* OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid) */
37-
#define OIDNAMELEN 36
38-
3936
#endif

0 commit comments

Comments
 (0)