diff options
author | Tom Lane | 2009-05-05 23:39:55 +0000 |
---|---|---|
committer | Tom Lane | 2009-05-05 23:39:55 +0000 |
commit | 87bbef1db53f043a0efc8735e9f5a975ffe34ccf (patch) | |
tree | 1fd6e0b6b3a4dd0554a2a5e3e8feca75fd91545c | |
parent | 26fe3964b4273460d41cac9481b83de657cac733 (diff) |
Tweak a comment to agree a bit better with the new dispensation that
locales are database-wide, not server-wide.
-rw-r--r-- | src/backend/commands/dbcommands.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index d300e57160..4d6ee2b1f9 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -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. * |