pgsql: Fix bug in deciding whether to scan newly-attached partition.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in deciding whether to scan newly-attached partition.
Date: 2017-08-05 02:05:51
Message-ID: E1ddoTP-00013c-4D@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-08-05 13:36:31 pgsql: Add support for ICU 4.2
Previous Message Peter Eisentraut 2017-08-05 01:29:47 pgsql: Only kill sync workers at commit time in subscription DDL