pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Tue, 13 Dec 2011 14:04:02 -0500
Message-ID: <6900.1323803042@sss.pgh.pa.us> (raw)
In-Reply-To: <COL116-W49717AE48637C72A1206F6A3BD0@phx.gbl>
References: <COL116-W333FEC5259FA21D7EF20F3A3B90@phx.gbl>
	<20915.1323505573@sss.pgh.pa.us>
	<COL116-W49ABA55B2BABBC2237E19DA3BC0@phx.gbl>
	<12191.1323725933@sss.pgh.pa.us>
	<COL116-W382B6B5747B0DD0466CFA8A3BD0@phx.gbl>
	<27650.1323789495@sss.pgh.pa.us>
	<COL116-W49717AE48637C72A1206F6A3BD0@phx.gbl>

John Lumby <johnlumby@hotmail.com> writes:
> I do have other databases in my cluster which probably explains the different datlastsysoid.

No, it wouldn't.  datlastsysoid only counts objects created during
initdb.

[ thinks for a bit ]  The most likely explanation for the different
datlastsysoid value is that the number of pre-created pg_collation
entries is quite a bit different on my box than yours, as a result of a
different list from "locale -a".  It's hard to see why that would have
anything to do with your issue, but I have a feeling it does somehow.

What platforms have you tried this on, exactly?  I tried it on Fedora 14.

> What are the values of relevant locale-type env vars when you ran initdb on your test sys?

Shrug ... C.  That's my normal working environment.  I did try it with
en_US.utf8 too, just for grins.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <6900.1323803042@sss.pgh.pa.us>
Permalink:  ../6900.1323803042@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6900.1323803042@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-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: <6900.1323803042@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> <COL116-W382B6B5747B0DD0466CFA8A3BD0@phx.gbl> <27650.1323789495@sss.pgh.pa.us> <COL116-W49717AE48637C72A1206F6A3BD0@phx.gbl> <6900.1323803042@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