Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B10491C7037B for ; Tue, 13 Dec 2011 15:04:19 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RaXeD-0001rH-7X for pgsql-bugs@postgresql.org; Tue, 13 Dec 2011 19:04:19 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBDJ43GZ006901; Tue, 13 Dec 2011 14:04:03 -0500 (EST) To: John Lumby cc: pgsql bugs 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: References: , <20915.1323505573@sss.pgh.pa.us> , <12191.1323725933@sss.pgh.pa.us> , <27650.1323789495@sss.pgh.pa.us> Comments: In-reply-to John Lumby message dated "Tue, 13 Dec 2011 13:35:59 -0500" Date: Tue, 13 Dec 2011 14:04:02 -0500 Message-ID: <6900.1323803042@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201112/92 X-Sequence-Number: 31903 John Lumby 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