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_-mmzkkx9pejp...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f85f88bcc270cf12defc34f143456834d8d8c6f8

Modified Files
--------------
src/backend/commands/tablecmds.c          | 40 ++++++++++++++++++---------
src/test/regress/expected/alter_table.out | 45 +++++++++++++++++++++++++++++++
src/test/regress/sql/alter_table.sql      | 38 ++++++++++++++++++++++++++
3 files changed, 111 insertions(+), 12 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to