]> granicus.if.org Git - postgresql/commit
Change CREATE TABLE so that column default expressions coming from different
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 6 Oct 2009 00:55:35 +0000 (00:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 6 Oct 2009 00:55:35 +0000 (00:55 +0000)
commit8e3384e35df25479371fb196ec49e58c7940a5a6
treef9a8b5a218e0491848f9244b50974440e1af4471
parent83a673808dc3a47363eae6388bea8571e2bc07a3
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