Chao Li classifies a series of commands:
Does an operation propagate to partitions? Does it affect future partitions? Does
ONLYdo what it claims? Why do some commands work on parents but not on partitions—or vice versa?Today, PostgreSQL documentation describes individual
ALTER TABLEsub-commands well, but it rarely explains their interaction with partitioned tables as a whole. As a result, users often discover the real behavior only through trial and error.This post summarizes a systematic investigation of
ALTER TABLEbehavior on partitioned tables, turning scattered rules into a consistent classification model.
Click through for 15 buckets of commands relating to ALTER TABLE in PostgreSQL and see how they handle dealing with partitioned tables.