Re: Repeatedly breaking indexes - SOLVED

Поиск
Список
Период
Сортировка
От Martin Edlman
Тема Re: Repeatedly breaking indexes - SOLVED
Дата
Msg-id Pine.LNX.4.44.0312010723500.7095-100000@worm.fortech.cz
обсуждение исходный текст
Ответ на Re: Repeatedly breaking indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Repeatedly breaking indexes - SOLVED  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hello,

    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.
    So I changed /etc/sysconfig/i18n to use cs_CZ and everything is ok
from then. All indexes seem to be working fine and there are no problems.

    But I would like to know why it was not started under cs_CZ when
all Pg config files specify cs_CZ and ~postgres/.bash_profile contains
export LANG="cs_CZ" and postmaster is run from it's rc script as

su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA ...."

    So I expected that cs_CZ will be used in this case. :-( GRrrrrr.

    Ok now it's working, thank you all who helped.

Martin

> Tomas Szepe <szepe@pinerecords.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
>

--

Martin Edlman
Fortech s.r.o, Litomysl
Public PGP key: http://edas.visaci.cz/#keys

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Joe Sunday
Дата:
Сообщение: netmask(inet) function broken in 7.4
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Repeatedly breaking indexes - SOLVED