pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: carex <carex@skynet.be>
Cc: pgsql-sql@postgresql.org
Subject: Re: select using regexp does not use indexscan
Date: Sat, 13 Nov 2004 19:02:04 -0500
Message-ID: <3972.1100390524@sss.pgh.pa.us> (raw)
In-Reply-To: <20041113133651.A44723@megazone.bigpanda.com>
References: <3a0a211c.0411091202.223f1c02@posting.google.com>
	<20041113133651.A44723@megazone.bigpanda.com>

Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> On Tue, 9 Nov 2004, carex wrote:
>> And it works also perfectly with Gentoo.
>> So,is this a typical "Redhat Enterprise" problem ?
>> Or do I overlook something ??

> IIRC, in 7.3.x, index scans are only considered in "C" locale for
> regexp/LIKE. In 7.4.x, non-"C" locale databases can use a special
> index of a different opclass (<typename>_pattern_ops I believe).

Not sure if this answer was explicit enough, so: evidently the database
was initdb'd in "C" locale on Gentoo, but in some other locale on Red Hat.
The only "typical Red Hat problem" is that they are more enthusiastic
about setting up non-C default locales than some other distros.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <3972.1100390524@sss.pgh.pa.us>
Permalink:  ../3972.1100390524@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3972.1100390524@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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sszabo@megazone.bigpanda.com, carex@skynet.be
  Subject: Re: select using regexp does not use indexscan
  In-Reply-To: <3972.1100390524@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