From: amit Date: Fri, 10 Feb 2017 15:03:45 +0900 Subject: [PATCH 2/3] Add a note about DROP NOT NULL and partitions On the ALTER TABLE refpage, it seems better to mention how to drop drop the not null constraint of a partition's column. Per suggestion from Corey Huinker. --- doc/src/sgml/ref/alter_table.sgml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index da431f8369..be857882bb 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref/alter_table.sgml @@ -172,9 +172,13 @@ ALTER TABLE [ IF EXISTS ] name - If this table is a partition, one cannot perform DROP NOT NULL + If this table is a partition, one cannot perform DROP NOT NULL on a column if it is marked NOT NULL in the parent - table. + table. To drop the NOT NULL constraint from all the + partitions, perform DROP NOT NULL on the parent + table. One might however want to set it for only some partitions, + which is possible by doing SET NOT NULL on individual + partitions. -- 2.11.0 --------------434C61868FD2E7C005F82712 Content-Type: text/x-diff; name="0003-Listify-a-note-on-the-CREATE-TABLE-page.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0003-Listify-a-note-on-the-CREATE-TABLE-page.patch"