Re: Repeatedly breaking indexes - SOLVED

From: Martin Edlman <edlman(at)fortech(dot)cz>
To: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Repeatedly breaking indexes - SOLVED
Date: 2003-12-01 06:39:30
Message-ID: Pine.LNX.4.44.0312010723500.7095-100000@worm.fortech.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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
>

--

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message He Li 2003-12-01 09:54:52 PostgreSQL 7.4 & initdb in HP-UX 11i ---> creating conversions... ERROR: could not access file "$libdir/ascii_and_mic": No such file or directory
Previous Message Joe Sunday 2003-11-30 22:43:26 netmask(inet) function broken in 7.4