diff options
Diffstat (limited to 'src/bin/initdb/initdb.sh')
-rw-r--r-- | src/bin/initdb/initdb.sh | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index 9a6b78217b7..0405b316d75 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -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.152 2002/04/27 21:24:34 tgl Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.153 2002/05/09 13:30:24 petere Exp $ # #------------------------------------------------------------------------- @@ -464,6 +464,30 @@ echo "The files belonging to this database system will be owned by user \"$Effec echo "This user must also own the server process." 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` +then + echo "The database cluster will be initialized with locale `pg_getlocale CTYPE`." +else + echo "The database cluster will be initialized with locales:" + echo " COLLATE: `pg_getlocale COLLATE`${TAB}CTYPE: `pg_getlocale CTYPE`${TAB}MESSAGES: `pg_getlocale MESSAGES`" + echo " MONETARY: `pg_getlocale MONETARY`${TAB}NUMERIC: `pg_getlocale NUMERIC`${TAB}TIME: `pg_getlocale TIME`" +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 + 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." +fi +echo + + ########################################################################## # # CREATE DATABASE DIRECTORY |