pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul Green <traktion@webleicester.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: Broken index?
Date: Fri, 07 Sep 2001 12:20:55 -0400
Message-ID: <26049.999879655@sss.pgh.pa.us> (raw)
In-Reply-To: <20010907161543.A9690@trak.webleicester.co.uk>
References: <20010907100539.A7099@trak.webleicester.co.uk>
	<22742.999871857@sss.pgh.pa.us>
	<20010907153917.A9567@trak.webleicester.co.uk>
	<23506.999874396@sss.pgh.pa.us>
	<20010907161543.A9690@trak.webleicester.co.uk>

Paul Green <traktion@webleicester.co.uk> writes:
> I didn't actually compile it at all - I used the default RPMs provided by
> Redhat. I'm unsure whether they have compiled in support or not,

They do...

> but I know
> I always start/stop postgres using the init.d scripts, which always start
> the database under the user postgres. As far as I'm aware, I've never
> changed the locale of the system/db either. I just checked using 'locale'
> to see how the system was set up under the usernames I use to log in to the
> machine and they are all en_GB anyway. I also checked /etc/sysconfig/i18n
> and that too was set to en_GB, so I think I'm safe on this front.

Nonetheless, it certainly appears that you've got a corrupt index, so
I'm guessing that at one time or another the wrong locale environment
was used.  Even one out-of-order entry in the index will cause
long-lasting problems.

You could try a direct observation of index ordering, say

	SELECT name FROM table ORDER BY name;

If you run this first with enable_sort turned off and second with
enable_indexscan turned off, you should get indexscan and explicit-sort
plans respectively (use EXPLAIN to make sure).  Dump the outputs into
files and compare...

> Any ideas?

My recommendation is to update to 7.1.3 in any case.

			regards, tom lane



view thread (6+ messages)

Message-ID: <26049.999879655@sss.pgh.pa.us>
Permalink:  ../26049.999879655@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26049.999879655@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, traktion@webleicester.co.uk
  Subject: Re: Broken index?
  In-Reply-To: <26049.999879655@sss.pgh.pa.us>
  References: <20010907100539.A7099@trak.webleicester.co.uk> <22742.999871857@sss.pgh.pa.us> <20010907153917.A9567@trak.webleicester.co.uk> <23506.999874396@sss.pgh.pa.us> <20010907161543.A9690@trak.webleicester.co.uk> <26049.999879655@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