aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-05-05 23:39:55 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-05-05 23:39:55 +0000
commitd7ee335520f1bfc7e10dfac43b4611736da42f00 (patch)
tree49ee8d51e2bda8462ba211025d77efd7515e136f /src/backend/commands/dbcommands.c
parent2fe0f2962c965a3da107a881cc1f697217465a0e (diff)
downloadpostgresql-d7ee335520f1bfc7e10dfac43b4611736da42f00.tar.gz
postgresql-d7ee335520f1bfc7e10dfac43b4611736da42f00.zip
Tweak a comment to agree a bit better with the new dispensation that
locales are database-wide, not server-wide.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r--src/backend/commands/dbcommands.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c
index cb536f3d59f..cf6e7400985 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.222 2009/04/23 17:39:21 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.223 2009/05/05 23:39:55 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -332,10 +332,12 @@ createdb(const CreatedbStmt *stmt)
errmsg("invalid locale name %s", dbctype)));
/*
- * Check whether encoding matches server locale settings. We allow
- * mismatch in three cases:
+ * Check whether chosen encoding matches chosen locale settings. This
+ * restriction is necessary because libc's locale-specific code usually
+ * fails when presented with data in an encoding it's not expecting.
+ * We allow mismatch in three cases:
*
- * 1. ctype_encoding = SQL_ASCII, which means either that the locale is
+ * 1. locale encoding = SQL_ASCII, which means either that the locale is
* C/POSIX which works with any encoding, or that we couldn't determine
* the locale's encoding and have to trust the user to get it right.
*