Here is a patch that fixes this bug, and a second patch (not for
backpatching) that changes the Value node to use int instead of long.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services