Dewin <thisgenericname(at)gmail(dot)com> writes:
>> But if that theory is correct, this isn't a new
>> problem in 9.1, it goes back to 8.3. Have you been running this script
>> successfully on older versions?
> On 9.0.
Thanks. On reflection I concluded that this is a new bug in 9.1 --- or
at least, this manifestation is new in 9.1.
http://archives.postgresql.org/pgsql-hackers/2011-04/msg00970.php
regards, tom lane