]> granicus.if.org Git - postgresql/commit
Disallow comments on columns of relation types other than tables, views,
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Dec 2009 23:54:17 +0000 (23:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Dec 2009 23:54:17 +0000 (23:54 +0000)
commitb7d67954456f15762c04e5269b64adc88dcd0860
tree0b9adca664f334d753092ca52b1a2e5afb0e63ef
parentde0d75ea2416eb86f9d686432bd8961b04a8d9eb
Disallow comments on columns of relation types other than tables, views,
and composite types, which are the only relkinds for which pg_dump support
exists for dumping column comments.  There is no obvious usefulness for
comments on columns of sequences or toast tables; and while comments on
index columns might have some value, it's not worth the risk of compatibility
problems due to possible changes in the algorithm for assigning names to
index columns.  Per discussion.

In consequence, remove now-dead code for copying such comments in CREATE TABLE
LIKE.
src/backend/commands/comment.c
src/backend/parser/parse_utilcmd.c
src/test/regress/expected/inherit.out
src/test/regress/sql/inherit.sql