Ensure that in all flex lexers that are part of the backend, a
Tom Lane <tgl@sss.pgh.pa.us>
Ensure that in all flex lexers that are part of the backend, a yy_fatal_error() call results in elog(ERROR) not exit(). This was already fixed in the main lexer and plpgsql, but extend same technique to all the other dot-l files. Also, on review of the possible calls to yy_fatal_error(), it seems safe to use elog(ERROR) not elog(FATAL).
Files
| Path | Change | +/− |
|---|---|---|
| contrib/cube/cubescan.l | modified | +3 −1 |
| contrib/seg/segscan.l | modified | +3 −0 |
| contrib/tsearch/parser.l | modified | +3 −0 |
| src/backend/bootstrap/bootscanner.l | modified | +6 −2 |
| src/backend/parser/scan.l | modified | +2 −2 |
| src/backend/utils/misc/guc-file.l | modified | +4 −1 |
| src/pl/plpgsql/src/scan.l | modified | +2 −2 |