pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John W Cunningham <john@pickaprof.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Crash
Date: Wed, 14 Mar 2001 17:26:29 -0500
Message-ID: <9719.984608789@sss.pgh.pa.us> (raw)
In-Reply-To: <BEEOLIJOIOBCOCILGHKICEFODBAA.john@pickaprof.com>
References: <BEEOLIJOIOBCOCILGHKICEFODBAA.john@pickaprof.com>

"John W Cunningham" <john@pickaprof.com> writes:
> I ran the test - can anyone tell me what these results mean and how I can
> fix it?

The diffs look like locale issues --- specifically, I'd say that your
server is running in en_US or some other locale with ISO-like sorting
rules for strings.

I am now wondering if your original problem
	ERROR:  cannot find attribute 1 of relation pg_proc_oid_index
might also be a locale issue.  Specifically, if the server was initdb'd
with one locale but is now being run in another, it could be suffering
from apparent index corruption (because the indexes are not in order
according to its current idea of what ordering means).  If this is
happening in the system indexes then you've got big problems.

Release 7.1 will have defenses against this common error, but in earlier
releases it's critical to ensure that every postmaster start has the
same locale environment variables as were seen by initdb.  That's *real*
easy to get wrong, since initdb is normally done by hand while the
postmaster is commonly started from boot scripts (which won't have the
exact same environment a login shell has).

I'd suggest discussing this with your ISP --- they probably need to redo
the initdb under the same locale that the postmaster will routinely run
under.  It's usually a smart idea to set the locale environment (LANG
or LC_ALL) explicitly in the script that launches the postmaster.

BTW, if you don't actually *need* any locale-sensitive processing, a
good way to avoid the whole problem is to build the software without
locale support.

			regards, tom lane



view thread (7+ messages)

Message-ID: <9719.984608789@sss.pgh.pa.us>
Permalink:  ../9719.984608789@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9719.984608789@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, john@pickaprof.com
  Subject: Re: Crash
  In-Reply-To: <9719.984608789@sss.pgh.pa.us>
  References: <BEEOLIJOIOBCOCILGHKICEFODBAA.john@pickaprof.com> <9719.984608789@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox