Change CREATE TABLE so that column default expressions coming from different master
authorTom Lane <[email protected]>
Tue, 6 Oct 2009 00:55:26 +0000 (00:55 +0000)
committerTom Lane <[email protected]>
Tue, 6 Oct 2009 00:55:26 +0000 (00:55 +0000)
commite537ef80262ede8bb0b721129a1709681e0271a6
treeb06f81c19c3193d72dba968ee33324d951897d64
parent7d3b3eedd8d49a342cb533cc31bbe5bcf1ce03be
Change CREATE TABLE so that column default expressions coming from different
inheritance parent tables are compared using equal(), instead of doing
strcmp() on the nodeToString representation.  The old implementation was
always a tad cheesy, and it finally fails completely as of 8.4, now that the
node tree might contain syntax location information.  equal() knows it's
supposed to ignore those fields, but strcmp() hardly can.  Per recent
report from Scott Ribe.
src/backend/commands/tablecmds.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/outfuncs.c
src/backend/parser/parse_utilcmd.c
src/include/nodes/parsenodes.h
src/test/regress/expected/inherit.out
src/test/regress/sql/inherit.sql