pgsql: Revise attribute handling code on partition creation

2018-11-08 Thread Alvaro Herrera
Revise attribute handling code on partition creation The original code to propagate NOT NULL and default expressions specified when creating a partition was mostly copy-pasted from typed-tables creation, but not being a great match it contained some duplicity, inefficiency and bugs. This commit f

pgsql: Revise attribute handling code on partition creation

2018-11-08 Thread Alvaro Herrera
Revise attribute handling code on partition creation The original code to propagate NOT NULL and default expressions specified when creating a partition was mostly copy-pasted from typed-tables creation, but not being a great match it contained some duplicity, inefficiency and bugs. This commit f

pgsql: Revise attribute handling code on partition creation

2018-11-08 Thread Alvaro Herrera
Revise attribute handling code on partition creation The original code to propagate NOT NULL and default expressions specified when creating a partition was mostly copy-pasted from typed-tables creation, but not being a great match it contained some duplicity, inefficiency and bugs. This commit f