Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
1c3c0805
Commit
1c3c0805
authored
25 years ago
by
Tom Lane
Browse files
Options
Downloads
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
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/backend/catalog/genbki.sh.in
+4
-6
4 additions, 6 deletions
src/backend/catalog/genbki.sh.in
src/bin/initlocation/Makefile
+1
-5
1 addition, 5 deletions
src/bin/initlocation/Makefile
src/include/postgres_ext.h
+1
-4
1 addition, 4 deletions
src/include/postgres_ext.h
with
6 additions
and
15 deletions
src/backend/catalog/genbki.sh.in
+
4
−
6
View file @
1c3c0805
...
...
@@ -10,7 +10,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
2
199
8/10/28 19:38:4
6 tgl Exp $
# $Header: /cvsroot/pgsql/src/backend/catalog/Attic/genbki.sh.in,v 1.
3
199
9/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
...
...
@@ -80,9 +79,8 @@ sed -e "s/;[ ]*$//g" \
-e
"s/^NameData/
\n
ame/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..
#
...
...
This diff is collapsed.
Click to expand it.
src/bin/initlocation/Makefile
+
1
−
5
View file @
1c3c0805
...
...
@@ -7,17 +7,13 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.
6
199
8
/0
8/22 05:19:25 momjian
Exp $
# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.
7
199
9
/0
6/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
...
...
This diff is collapsed.
Click to expand it.
src/include/postgres_ext.h
+
1
−
4
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/0
2/13 23:20:47 momjian
Exp $
* $Id: postgres_ext.h,v 1.
4
1999/0
6/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment