Re: Join on incompatible types
| От | Laurent Martelli |
|---|---|
| Тема | Re: Join on incompatible types |
| Дата | |
| Msg-id | 87ptfok0zg.fsf@news.nerim.net обсуждение |
| Ответ на | Re: Join on incompatible types (Shridhar Daithankar <shridhar_daithankar@myrealbox.com>) |
| Ответы |
Re: Join on incompatible types
|
| Список | pgsql-performance |
>>>>> "Shridhar" == Shridhar Daithankar <shridhar_daithankar@myrealbox.com> writes: [...] Shridhar> 2. Try following query EXPLAIN ANALYZE SELECT * from lists Shridhar> join classes on classes.id=lists.value where Shridhar> lists.id='16'::integer; Shridhar> classes.id=lists.value::integer. With classes.id of type integer and lists.value of type varchar, I get "ERROR: Cannot cast type character varying to integer", which is not such a surprise. Thanks for your help anyway. -- Laurent Martelli laurent@aopsys.com Java Aspect Components http://www.aopsys.com/ http://jac.aopsys.com
В списке pgsql-performance по дате отправления: