]> granicus.if.org Git - postgresql/commit
Fix bug in deciding whether to scan newly-attached partition.
authorRobert Haas <rhaas@postgresql.org>
Sat, 5 Aug 2017 01:54:28 +0000 (21:54 -0400)
committerRobert Haas <rhaas@postgresql.org>
Sat, 5 Aug 2017 02:01:37 +0000 (22:01 -0400)
commitf85f88bcc270cf12defc34f143456834d8d8c6f8
tree2c534351ba189bc7bddca96033365b6442d3d831
parent7e174fa793a2df89fe03d002a5087ef67abcdde8
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
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql