From: | Evan Carroll <me(at)evancarroll(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Custom Domain; migration from 8.4 to 9.1 and COLLATE |
Date: | 2012-05-10 20:13:28 |
Message-ID: | CAAiePB7HSQKi38mKSb83nzf8QgWFySFGysrM87KPcQiCiWG4Tg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Could we see the complete context for this?
Sure.
dealermade=# CREATE OR REPLACE TEMP VIEW chrome_vinmatch_best_match AS
dealermade-# SELECT DISTINCT ON (v.vin) v.vin, vd.*
dealermade-# FROM inventory.view_in_stock_vehicles AS v
dealermade-# JOIN chrome_vinmatch.view_vin_decode AS vd
dealermade-# ON substring(v.vin FROM 0 FOR 9) =
substring(vd.pattern FROM 0 FOR 9)
dealermade-# AND v.vin LIKE vd.pattern
dealermade-# ORDER BY vin, length(pattern) DESC
dealermade-# ;
ERROR: no collation was derived for column "vin" with collatable type citext
HINT: Use the COLLATE clause to set the collation explicitly.
v.vin is the column with the custom DOMAIN.
--
Evan Carroll - me(at)evancarroll(dot)com
System Lord of the Internets
web: http://www.evancarroll.com
ph: 281.901.0011
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-05-10 20:56:07 | Re: Custom Domain; migration from 8.4 to 9.1 and COLLATE |
Previous Message | Andy Colson | 2012-05-10 19:16:53 | Re: Multiple COPY statements |