From: Robert Haas <robertmhaas@gmail.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
Date: Wed, 21 Dec 2016 10:31:18 -0500
Message-ID: <CA+TgmoaQLDUAdjBNe1hfSCj5SW+8HnsnDwTbGZUkSmHygG-V9w@mail.gmail.com> (raw)
In-Reply-To: <20161220172214.xjgratgkhqhsp7gk@alvherre.pgsql>
References: <E1cEgoz-0001H4-UP@gemulon.postgresql.org>
<20161220172214.xjgratgkhqhsp7gk@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On Tue, Dec 20, 2016 at 12:22 PM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Robert Haas wrote:
>> Implement table partitioning.
>
> I thought it was odd to use rd_rel->reloftype as a boolean in
> ATExecAttachPartition, but apparently we do it elsewhere too, so let's
> leave that complaint for another day.
Ugh. I agree - that's bad style.
> What I also found off in the same function is that we use
> SearchSysCacheCopyAttName() on each attribute and then don't free the
> result, and don't ever use the returned tuple either. A simple fix, I
> thought, just remove the "Copy" and add a ReleaseSysCache().
Or use SearchSysCachExists.
> But then I
> noticed this whole thing is rather strange -- why not pass a boolean
> flag down to CreateInheritance() and from there to
> MergeAttributesIntoExisting() to implement the check? That seems less
> duplicative.
Hmm, that would be another way to do it.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: robertmhaas@gmail.com, alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org, Langote_Amit_f8@lab.ntt.co.jp
Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
In-Reply-To: <CA+TgmoaQLDUAdjBNe1hfSCj5SW+8HnsnDwTbGZUkSmHygG-V9w@mail.gmail.com>
References: <E1cEgoz-0001H4-UP@gemulon.postgresql.org> <20161220172214.xjgratgkhqhsp7gk@alvherre.pgsql> <CA+TgmoaQLDUAdjBNe1hfSCj5SW+8HnsnDwTbGZUkSmHygG-V9w@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox