From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
Date: Wed, 18 Oct 2017 10:53:23 +0200
Message-ID: <20171018085323.4pi7qn5r3igjfmmn@alvherre.pgsql> (raw)
In-Reply-To: <c2731d90-84be-8c27-7393-46617ad0581c@lab.ntt.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Amit Langote wrote:
> On 2017/10/18 1:52, Alvaro Herrera wrote:
> > Alvaro Herrera wrote:
> >> Robert Haas wrote:
> >>> Implement table partitioning.
> >>
> >> Is it intentional that you can use ALTER TABLE OWNER TO on the parent
> >> table, and that this does not recurse to modify the partitions' owners?
> >> This doesn't seem to be mentioned in comments nor documentation, so it
> >> seems an oversight to me.
>
> Hmm, I would say of it that the new partitioning didn't modify the
> behavior that existed for inheritance.
>
> That said, I'm not sure if the lack of recursive application of ownership
> change to descendant tables is unintentional.
My view is that the fact that partitioning uses inheritance is just an
implementation detail. We shouldn't let historical behavior for
inheritance dictate behavior for partitioning. Inheritance has many
undesirable warts.
> > The alter table docs say that ONLY must be specified if one does not
> > want to modify descendants, so I think this is a bug.
>
> Just to clarify, if we do think of it as a bug, then it will apply to the
> inheritance case as well, right?
I'd leave it alone.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
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: alvherre@alvh.no-ip.org, Langote_Amit_f8@lab.ntt.co.jp, rhaas@postgresql.org, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
In-Reply-To: <20171018085323.4pi7qn5r3igjfmmn@alvherre.pgsql>
References: <c2731d90-84be-8c27-7393-46617ad0581c@lab.ntt.co.jp> <20171018085323.4pi7qn5r3igjfmmn@alvherre.pgsql>
* 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