Alter plpgsql's lexer so that yylineno and yymore are not used. This
Tom Lane <tgl@sss.pgh.pa.us>
Alter plpgsql's lexer so that yylineno and yymore are not used. This avoids 'input buffer overflow' failure on long literals, improves performance, gives the right answer for line position in functions containing multiline literals, suppresses annoying compiler warnings, and generally is so much better I wonder why we didn't do it before.
Files
| Path | Change | +/− |
|---|---|---|
| src/pl/plpgsql/src/gram.y | modified | +25 −26 |
| src/pl/plpgsql/src/pl_comp.c | modified | +10 −7 |
| src/pl/plpgsql/src/plpgsql.h | modified | +6 −7 |
| src/pl/plpgsql/src/scan.l | modified | +91 −48 |