From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> |
Cc: | Ashutosh Bapat <ashutosh(dot)bapat(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Amit Langote <amitlangote09(at)gmail(dot)com> |
Subject: | Re: A bug in mapping attributes in ATExecAttachPartition() |
Date: | 2017-08-01 17:54:42 |
Message-ID: | CA+TgmoYs+29fL0NAfrg5XTHJ9N1vFhzHUSO7BoW4uqTjoRnk9w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jul 31, 2017 at 11:10 PM, Amit Langote
<Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> wrote:
> OK, these cosmetic changes are now in attached patch 0001.
Regarding 0001:
- List *childrels;
+ List *attachRel_children;
I sorta don't see why this is necessary, or better.
/* It's safe to skip the validation scan after all */
if (skip_validate)
+ {
+ /* No need to scan the table after all. */
The existing comment should be removed along with adding the new one, I think.
- if (part_rel != attachRel &&
- part_rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
+ if (part_rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
{
- heap_close(part_rel, NoLock);
+ if (part_rel != attachRel)
+ heap_close(part_rel, NoLock);
This works out to a cosmetic change, I guess, but it makes it worse...
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-08-01 17:57:12 | Re: [PATCH v3] pg_progress() SQL function to monitor progression of long running SQL queries/utilities |
Previous Message | Robert Haas | 2017-08-01 17:48:34 | Re: Better way to handle suppression of CASCADE detail messages |