postgresql/src/include/nodes
Heikki Linnakangas e42375fc81 Retain comments on indexes and constraints at ALTER TABLE ... TYPE ...
When a column's datatype is changed, ATExecAlterColumnType() rebuilds all
the affected indexes and constraints, and the comments from the old
indexes/constraints were not carried over.

To fix, create a synthetic COMMENT ON command in the work queue, to re-add
any comments on constraints. For indexes, there's a comment field in
IndexStmt that is used.

This fixes bug #13126, reported by Kirill Simonov. Original patch by
Michael Paquier, reviewed by Petr Jelinek and me. This bug is present in
all versions, but only backpatch to 9.5. Given how minor the issue is, it
doesn't seem worth the work and risk to backpatch further than that.
2015-07-14 11:40:22 +03:00
..
bitmapset.h Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. 2015-02-20 00:11:42 -05:00
execnodes.h Improve handling of CustomPath/CustomPlan(State) children. 2015-06-26 09:40:47 -04:00
lockoptions.h Improve representation of PlanRowMark. 2015-03-15 18:41:47 -04:00
makefuncs.h Support GROUPING SETS, CUBE and ROLLUP. 2015-05-16 03:46:31 +02:00
memnodes.h Move memory context callback declarations into palloc.h. 2015-03-01 12:31:32 -05:00
nodeFuncs.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodes.h pgindent run for 9.5 2015-05-23 21:35:49 -04:00
params.h Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. 2015-02-20 00:11:42 -05:00
parsenodes.h Retain comments on indexes and constraints at ALTER TABLE ... TYPE ... 2015-07-14 11:40:22 +03:00
pg_list.h Support GROUPING SETS, CUBE and ROLLUP. 2015-05-16 03:46:31 +02:00
plannodes.h Improve handling of CustomPath/CustomPlan(State) children. 2015-06-26 09:40:47 -04:00
primnodes.h pgindent run for 9.5 2015-05-23 21:35:49 -04:00
print.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
readfuncs.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
relation.h Improve handling of CustomPath/CustomPlan(State) children. 2015-06-26 09:40:47 -04:00
replnodes.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
tidbitmap.h Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. 2015-02-20 00:11:42 -05:00
value.h Update copyright for 2015 2015-01-06 11:43:47 -05:00