Re: [HACKERS] main tree is (slightly) damaged - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] main tree is (slightly) damaged
Date
Msg-id 135.936807393@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] main tree is (slightly) damaged  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Lamar Owen
Date:
Subject: PG_UPGRADE status?
Next
From: Patrick Logan
Date:
Subject: Problem enabling pltcl