"Vladimir V. Zolotych" <gsmith(at)eurocom(dot)od(dot)ua> writes:
> proba=# insert into bb select id,val,count(val) from aa group by id,val;
> pqReadData() -- backend closed the channel unexpectedly.
Try 7.1. Prior releases tend to have problems with implicit datatype
conversions in INSERT ... SELECT.
regards, tom lane