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
97f7ceaa
Commit
97f7ceaa
authored
May 17, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Guard against empty-string results from pg_getlocale.
parent
f0811a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/bin/initdb/initdb.sh
src/bin/initdb/initdb.sh
+7
-7
No files found.
src/bin/initdb/initdb.sh
View file @
97f7ceaa
...
...
@@ -27,7 +27,7 @@
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.15
3 2002/05/09 13:30:24 petere
Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.15
4 2002/05/17 02:20:26 tgl
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -466,11 +466,11 @@ echo
TAB
=
' '
if
test
`
pg_getlocale CTYPE
`
=
`
pg_getlocale COLLATE
`
\
&&
test
`
pg_getlocale CTYPE
`
=
`
pg_getlocale TIME
`
\
&&
test
`
pg_getlocale CTYPE
`
=
`
pg_getlocale NUMERIC
`
\
&&
test
`
pg_getlocale CTYPE
`
=
`
pg_getlocale MONETARY
`
\
&&
test
`
pg_getlocale CTYPE
`
=
`
pg_getlocale MESSAGES
`
if
test
x
`
pg_getlocale CTYPE
`
=
x
`
pg_getlocale COLLATE
`
\
&&
test
x
`
pg_getlocale CTYPE
`
=
x
`
pg_getlocale TIME
`
\
&&
test
x
`
pg_getlocale CTYPE
`
=
x
`
pg_getlocale NUMERIC
`
\
&&
test
x
`
pg_getlocale CTYPE
`
=
x
`
pg_getlocale MONETARY
`
\
&&
test
x
`
pg_getlocale CTYPE
`
=
x
`
pg_getlocale MESSAGES
`
then
echo
"The database cluster will be initialized with locale
`
pg_getlocale CTYPE
`
."
else
...
...
@@ -480,7 +480,7 @@ else
fi
# (Be sure to maintain the correspondence with locale_is_like_safe() in selfuncs.c.)
if
test
`
pg_getlocale COLLATE
`
!=
C
&&
test
`
pg_getlocale COLLATE
`
!=
POSIX
;
then
if
test
x
`
pg_getlocale COLLATE
`
!=
xC
&&
test
x
`
pg_getlocale COLLATE
`
!=
x
POSIX
;
then
echo
"This locale setting will prevent the use of indexes for pattern matching"
echo
"operations. If that is a concern, rerun
$CMDNAME
with the collation order"
echo
"set to
\"
C
\"
. For more information see the Administrator's Guide."
...
...
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