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
1c3c0805
Commit
1c3c0805
authored
Jun 04, 1999
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turns out OIDNAMELEN wasn't really being used at all!
Get rid of it to make customization of NAMEDATALEN easier.
parent
7b5f84d1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
src/backend/catalog/genbki.sh.in
src/backend/catalog/genbki.sh.in
+4
-6
src/bin/initlocation/Makefile
src/bin/initlocation/Makefile
+1
-5
src/include/postgres_ext.h
src/include/postgres_ext.h
+1
-4
No files found.
src/backend/catalog/genbki.sh.in
View file @
1c3c0805
...
...
@@ -10,7 +10,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
2 1998/10/28 19:38:4
6 tgl Exp $
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
3 1999/06/04 21:12:0
6 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
...
...
@@ -81,8 +80,7 @@ sed -e "s/;[ ]*$//g" \
-e
"s/(NameData/(name/g"
\
-e
"s/(Oid/(oid/g"
\
-e
"s/NAMEDATALEN/
$NAMEDATALEN
/g"
\
-e
"s/OIDNAMELEN/
$OIDNAMELEN
/g"
|
\
awk
'
|
awk
'
# ----------------
# now use awk to process remaining .h file..
#
...
...
src/bin/initlocation/Makefile
View file @
1c3c0805
...
...
@@ -7,17 +7,13 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.
6 1998/08/22 05:19:25 momjian
Exp $
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.
7 1999/06/04 21:12:06 tgl
Exp $
#
#-------------------------------------------------------------------------
SRCDIR
=
../..
include
../../Makefile.global
SEDSCRIPT
=
\
-e
"s^PG_OPT_NAMEDATALEN_PARAM^
$(NAMEDATALEN)
^g"
\
-e
"s^PG_OPT_OIDNAMELEN_PARAM^
$(OIDNAMELEN)
^g"
all
:
initlocation
initlocation
:
initlocation.sh
...
...
src/include/postgres_ext.h
View file @
1c3c0805
...
...
@@ -16,7 +16,7 @@
* use header files that are otherwise internal to Postgres to interface
* with the backend.
*
* $Id: postgres_ext.h,v 1.
3 1999/02/13 23:20:47 momjian
Exp $
* $Id: postgres_ext.h,v 1.
4 1999/06/04 21:12:07 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,7 +33,4 @@ typedef unsigned int Oid;
*/
#define NAMEDATALEN 32
/* OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid) */
#define OIDNAMELEN 36
#endif
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