pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: zhangh3@aetna.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16835: btree index does not work for where clause using 'foo%'
Date: Fri, 22 Jan 2021 11:44:03 -0500
Message-ID: <1165678.1611333843@sss.pgh.pa.us> (raw)
In-Reply-To: <16835-419ddd12f1e74ee5@postgresql.org>
References: <16835-419ddd12f1e74ee5@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> https://www.postgresql.org/docs/11/indexes-types.html, according to this
> page, btree index is supposed to work for where clause col like 'foo%', but
> does not work for me. we are on aurora postgres 11, I also tested on
> postgres 11, it does not work either.

As the manual explains, that will not work by default unless your
database locale is C (which is an uncommon default nowadays).

It's also possible that Aurora has changed something that keeps
it from working, but I'd investigate the locale angle first.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <1165678.1611333843@sss.pgh.pa.us>
Permalink:  ../1165678.1611333843@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1165678.1611333843@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zhangh3@aetna.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16835: btree index does not work for where clause using 'foo%'
  In-Reply-To: <1165678.1611333843@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