![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Tomas Szepe <szepe (AT) pinerecords (DOT) com> writes: Martin, you can probably rule out the cs_CZ (LATIN2) locale as the cause of your problems -- I've been using that one for years on many production postgres systems (often huge and constantly loaded) and have never observed the problems you're describing. Thanks for the info. But are you using cs_CZ.ISO8859-2 in particular on Red Hat 8.0 in particular? If it is a locale-related issue, it might be specific to that particular variant on that platform. I have RH 8.0 here, and could easily run some tests, but I'm not sure what to look for. A quick run of the regression tests didn't reveal any issues, other than expectable differences from C locale in sort ordering. regards, tom lane |
#2
| |||
| |||
|
|
finally the problem is solved. The problem was with locales. I installed and initialised the database under cs_CZ, so Pg recorded cs_CZ in all its configurations and startup scripts. After that I changed /etc/sysconfig/i18n to use en_US locale as system default. And that was the problem. According to "ps axe" the postmaster was running under en_US locales instead of cs_CZ as I expected. |
#3
| |||
| |||
|
|
"ps" is not a reliable guide to the locale settings being used by Postgres. |
|
The postmaster will adopt LC_COLLATE and LC_CTYPE from the settings recorded in pg_control (by initdb) regardless of its environment. |
|
So I'm not convinced that you've correctly identified the problem. However, it seems possible that part of the issue is misbehavior if the various LC_xxx settings aren't all alike --- could you dig further and try to isolate it? |
![]() |
| Thread Tools | |
| Display Modes | |
| |