Hmm, thanks for the report.I can repeat the aboved issue on master, even on pg10 and pg 11.I analyzed this issue, and I found that ATExecAddColumn(), we forgot to call CommandCounterIncrement() in if (colDef->inhcount > 0) {...} branch.So the third(a->d) updates the first(a->b->c->d) tuple.Attached patch is my quickly fixed solution.
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных