Escaped octal constants were scanned incorrectly.
Kudos to Chris Anderson (chris@clinton.toaster.ba.md.us) for finding the problem AND providing the fix!
Apply this patch.
=================================================================== RCS file: /usr/local/devel/pglite/cvs/src/backend/parser/scansup.c,v retrieving revision 1.2 diff -c -r1.2 scansup.c *** 1.2 1995/07/17 07:19:17 --- src/backend/parser/scansup.c 1995/09/14 18:17:24 *************** *** 123,129 **** s[i+k] >= '0' && s[i+k] <= '7' && k < 3; k++) octal[k] = s[i+k]; ! i += k; octal[3] = '\0'; octVal = strtol(octal,0,8); --- 123,129 ---- s[i+k] >= '0' && s[i+k] <= '7' && k < 3; k++) octal[k] = s[i+k]; ! i += k-1; octal[3] = '\0'; octVal = strtol(octal,0,8);