Don't treat NEW and OLD as reserved words anymore. For the purposes of rules
Tom Lane <tgl@sss.pgh.pa.us>
Don't treat NEW and OLD as reserved words anymore. For the purposes of rules it works just as well to have them be ordinary identifiers, and this gets rid of a number of ugly special cases. Plus we aren't interfering with non-rule usage of these names. catversion bump because the names change internally in stored rules.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/keywords.sgml | modified | +3 −3 |
| doc/src/sgml/rules.sgml | modified | +32 −33 |
| doc/src/sgml/syntax.sgml | modified | +2 −5 |
| src/backend/commands/view.c | modified | +3 −3 |
| src/backend/parser/gram.y | modified | +15 −54 |
| src/backend/parser/parse_utilcmd.c | modified | +5 −5 |
| src/backend/rewrite/rewriteDefine.c | modified | +3 −3 |
| src/backend/rewrite/rewriteHandler.c | modified | +3 −3 |
| src/backend/rewrite/rewriteManip.c | modified | +6 −6 |
| src/backend/utils/adt/ruleutils.c | modified | +2 −9 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/parser/gramparse.h | modified | +1 −3 |
| src/include/parser/kwlist.h | modified | +1 −3 |
| src/interfaces/ecpg/preproc/ecpg.addons | modified | +1 −7 |
| src/interfaces/ecpg/preproc/ecpg.header | modified | +2 −2 |
| src/interfaces/ecpg/preproc/ecpg.trailer | modified | +1 −11 |
| src/interfaces/ecpg/preproc/ecpg.type | modified | +1 −2 |
| src/interfaces/ecpg/preproc/parse.pl | modified | +1 −2 |