Re: [COMMITTERS] pgsql: Fix a bug in how we generate partition constraints.
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Date: 2017-01-13T19:35:25Z
Lists: pgsql-hackers
On Fri, Jan 13, 2017 at 2:31 PM, Robert Haas <robertmhaas@gmail.com> wrote: > On Fri, Jan 13, 2017 at 2:18 PM, Alvaro Herrera > <alvherre@2ndquadrant.com> wrote: >> Robert Haas wrote: >>> Fix a bug in how we generate partition constraints. >>> >>> Move the code for doing parent attnos to child attnos mapping for Vars >>> in partition constraint expressions to a separate function >>> map_partition_varattnos() and call it from the appropriate places. >> >> Hmm, we were discussing this stuff a few days ago, see >> https://www.postgresql.org/message-id/20170109182800.qrkae62kmur3gfeg@alvherre.pgsql >> and commit 3957b58b8885441c8d03bc1cfc00e47cf8cd7975. Part of this code >> duplicates that ... > > Is that bad? If you are expressing a concern about who wrote this code, I took Amit's word for it that he did. His patch file says: Reported by: n/a Patch by: Amit Langote Reports: n/a If that ain't right, that's bad. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Avoid some code duplication in map_partition_varattnos().
- cc144155f7cd 10.0 landed
-
Fix a bug in how we generate partition constraints.
- 0563a3a8b591 10.0 cited
-
Fix ALTER TABLE / SET TYPE for irregular inheritance
- 3957b58b8885 10.0 cited