Rename the internal structures of the CREATE TABLE (LIKE ...) facility
Peter Eisentraut <peter_e@gmx.net>
Rename the internal structures of the CREATE TABLE (LIKE ...) facility The original implementation of this interpreted it as a kind of "inheritance" facility and named all the internal structures accordingly. This turned out to be very confusing, because it has nothing to do with the INHERITS feature. So rename all the internal parser infrastructure, update the comments, adjust the error messages, and split up the regression tests.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_table.sgml | modified | +2 −2 |
| src/backend/nodes/copyfuncs.c | modified | +5 −5 |
| src/backend/nodes/equalfuncs.c | modified | +3 −3 |
| src/backend/nodes/outfuncs.c | modified | +4 −4 |
| src/backend/parser/gram.y | modified | +1 −9 |
| src/backend/parser/parse_utilcmd.c | modified | +19 −19 |
| src/include/nodes/nodes.h | modified | +1 −1 |
| src/include/nodes/parsenodes.h | modified | +6 −6 |
| src/test/regress/expected/create_table_like.out | added | +222 −0 |
| src/test/regress/expected/inherit.out | modified | +45 −264 |
| src/test/regress/expected/sanity_check.out | modified | +1 −2 |
| src/test/regress/output/misc.source | modified | +1 −2 |
| src/test/regress/parallel_schedule | modified | +1 −1 |
| src/test/regress/serial_schedule | modified | +1 −0 |
| src/test/regress/sql/create_table_like.sql | added | +99 −0 |
| src/test/regress/sql/inherit.sql | modified | +20 −117 |