Change plpgsql to depend on main parser's type-declaration grammar,
Tom Lane <tgl@sss.pgh.pa.us>
Change plpgsql to depend on main parser's type-declaration grammar, rather than having its own somewhat half-baked notion of what a type declaration looks like. This is necessary now to ensure that plpgsql will think a 'timestamp' variable has the same semantics as 'timestamp' does in the main SQL grammar; and it should avoid divergences in future.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/plsql.sgml | modified | +6 −7 |
| src/backend/parser/parse_type.c | modified | +74 −1 |
| src/include/parser/parse_type.h | modified | +3 −1 |
| src/pl/plpgsql/src/gram.y | modified | +77 −68 |
| src/pl/plpgsql/src/Makefile | modified | +7 −9 |
| src/pl/plpgsql/src/pl_comp.c | modified | +60 −81 |
| src/pl/plpgsql/src/plpgsql.h | modified | +12 −5 |
| src/pl/plpgsql/src/scan.l | modified | +42 −6 |