"Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> writes:> psql:x.sql:13: pqReadData() -- backend closed the channel unexpectedly.
This is the already-fixed-in-7.1.2 problem with empty SELECTs inplpgsql.
regards, tom lane