Fix bug in deciding whether to scan newly-attached partition.
Robert Haas <rhaas@postgresql.org>
Fix bug in deciding whether to scan newly-attached partition. If the table being attached had different attribute numbers than the parent, the old code could incorrectly decide it needed to be scanned. Amit Langote, reviewed by Ashutosh Bapat Discussion: http://postgr.es/m/CA+TgmobexgbBr2+Utw-pOMw9uxaBRKRjMW_-mmzKKx9PejPLMg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +28 −12 |
| src/test/regress/expected/alter_table.out | modified | +45 −0 |
| src/test/regress/sql/alter_table.sql | modified | +38 −0 |
Discussion
- A bug in mapping attributes in ATExecAttachPartition() 48 messages · 2017-06-07 → 2017-09-14