Retire xlateSqlType/xlateSqlFunc; all type name translations are now
Tom Lane <tgl@sss.pgh.pa.us>
Retire xlateSqlType/xlateSqlFunc; all type name translations are now handled as special productions. This is needed to keep us honest about user-schema type names that happen to coincide with system type names. Per pghackers discussion 24-Apr. To avoid bloating the keyword list too much, I removed the translations for datetime, timespan, and lztext, all of which were slated for destruction several versions back anyway.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/typecmds.c | modified | +11 −10 |
| src/backend/parser/gram.y | modified | +134 −149 |
| src/backend/parser/keywords.c | modified | +7 −1 |
| src/include/catalog/pg_proc.h | modified | +10 −2 |
| src/include/parser/gramparse.h | modified | +4 −4 |
| src/pl/plpgsql/src/pl_comp.c | modified | +2 −2 |
| src/test/regress/expected/alter_table.out | modified | +6 −6 |
| src/test/regress/expected/foreign_key.out | modified | +2 −2 |
| src/test/regress/expected/rules.out | modified | +1 −1 |
| src/test/regress/sql/alter_table.sql | modified | +6 −6 |
| src/test/regress/sql/foreign_key.sql | modified | +2 −2 |
| src/test/regress/sql/rules.sql | modified | +1 −1 |