Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
> postgres=> select * from pg_tables;
> ERROR: nodeRead: Bad type 0
Ah-hah. I was able to duplicate this problem on a local Linux box.
It seems that some implementations of vsnprintf() return -1 when the
data doesn't fit in the available space, rather than the size of the
available space as the man page specifies. This broke my recent
revision of stringinfo.c. Grumble. Will commit a fix shortly.
regards, tom lane