Re: A bug in mapping attributes in ATExecAttachPartition()
Amit Langote <langote_amit_f8@lab.ntt.co.jp>
From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>,
Amit Langote <amitlangote09@gmail.com>
Date: 2017-08-07T02:05:08Z
Lists: pgsql-hackers
Attachments
- 0001-Typo-attachRel-is-now-attachrel.patch (text/plain) patch 0001
- 0002-Some-refactoring-of-code-in-ATExecAttachPartition.patch (text/plain) patch 0002
- 0003-Teach-ATExecAttachPartition-to-skip-validation-in-mo.patch (text/plain) patch 0003
On 2017/08/05 11:05, Robert Haas wrote: > On Thu, Aug 3, 2017 at 8:45 PM, Amit Langote > <Langote_Amit_f8@lab.ntt.co.jp> wrote: >>> 0003 needs a rebase. >> >> Rebased patch attached. > > Committed. Thank you. > I think 0004 is a new feature, so I'm leaving that for v11. Sure. By the way, bulk of 0004 is refactoring which it seems is what Jeevan's default partition patch set also includes as one of the patches [1]. It got a decent amount review from Ashutosh. I broke it down into a separate patch, so that the patch to add the new feature is its own tiny patch. I also spotted a couple of comments referring to attachRel that we just recently renamed. So, attached are: 0001: s/attachRel/attachrel/g 0002: Refactoring to introduce a PartConstraintImpliedByRelConstraint 0003: Add the feature to skip the scan of individual leaf partitions Totally fine if you postpone 0002 and 0003 to when the tree opens up for PG 11. Thanks, Amit [1] https://www.postgresql.org/message-id/CAOgcT0OARciE2X%2BU0rjSKp9VuC279dYcCGkc3nCWKhHQ1_m2rw%40mail.gmail.com
Commits
-
Fix inconsistent capitalization.
- 29f021160ea7 10.0 landed
- 42651bdd68a1 11.0 landed
-
Fix bug in deciding whether to scan newly-attached partition.
- f85f88bcc270 10.0 landed
-
Fix lock upgrade hazard in ATExecAttachPartition.
- 972b6ec20bf0 10.0 landed
-
Code beautification for ATExecAttachPartition.
- 583df3b5c562 10.0 landed
-
Teach predtest.c about CHECK clauses to fix partitioning bugs.
- b08df9cab777 10.0 landed
-
Don't explicitly mark range partitioning columns NOT NULL.
- 3ec76ff1f2cf 10.0 cited