From: Tom Lane <tgl@sss.pgh.pa.us>
To: John Lumby <johnlumby@hotmail.com>
Cc: pgsql bugs <pgsql-bugs@postgresql.org>
Subject: Re: LIKE predicate and ERROR: 42P22: could not determine which collation to use for string comparison - HINT: Use the COLLATE clause ...
Date: Mon, 12 Dec 2011 16:38:53 -0500
Message-ID: <12191.1323725933@sss.pgh.pa.us> (raw)
In-Reply-To: <COL116-W49ABA55B2BABBC2237E19DA3BC0@phx.gbl>
References: <COL116-W333FEC5259FA21D7EF20F3A3B90@phx.gbl>
<20915.1323505573@sss.pgh.pa.us>
<COL116-W49ABA55B2BABBC2237E19DA3BC0@phx.gbl>
John Lumby <johnlumby@hotmail.com> writes:
> Sorry about that, here is a script to demonstrate using a much simpler example.
> It presumes linux and that there is a bash shell at /bin/bash.
> You should see table created and loaded (takes a few minutes), then successful query explain and run,
> then create index and re-run the explain (now uses index) and query (now fails)
Hmm ... I tried this script on both HEAD and 9.1, and see no failure.
Possibly it requires some non-default configuration setting to show
the problem? Also, are you certain your database is ending up with
LC_COLLATE and LC_CTYPE set to "C"? I am not sure that createdb pays
attention to those as locale settings.
regards, tom lane
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, johnlumby@hotmail.com
Subject: Re: LIKE predicate and ERROR: 42P22: could not determine which collation to use for string comparison - HINT: Use the COLLATE clause ...
In-Reply-To: <12191.1323725933@sss.pgh.pa.us>
References: <COL116-W333FEC5259FA21D7EF20F3A3B90@phx.gbl> <20915.1323505573@sss.pgh.pa.us> <COL116-W49ABA55B2BABBC2237E19DA3BC0@phx.gbl> <12191.1323725933@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