From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Robert Haas <rhaas@postgresql.org>
Cc: pgsql-hackers@postgresql.org, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
Date: Fri, 13 Oct 2017 18:34:49 +0200
Message-ID: <20171013163449.7dvbpfit3axwhyj6@alvherre.pgsql> (raw)
In-Reply-To: <E1cEgoz-0001H4-UP@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Robert Haas wrote:
> Implement table partitioning.
> Currently, tables can be range-partitioned or list-partitioned. List
> partitioning is limited to a single column, but range partitioning can
> involve multiple columns. A partitioning "column" can be an
> expression.
I find the "partition strategy" thing a bit suspect code-wise. I was a
bit bothered by all the "default:" clauses in switches that deal with
the possible values, and I was going to propose simply that we turn that
into an enum -- a trivial patch, I thought. Not so: the way it's used
by the grammar is a bit odd. Apparently, it starts life as a string
(either "list" or "range"), and then transformPartitionSpec() has to go
out of its way to return it as a char.
I propose we have gram.y itself resolve the strings to either 'list' or
'range' and that the node contains only those values, not any string.
Unless there is a reason why things are like this that I'm not seeing?
--
Á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, rhaas@postgresql.org, Langote_Amit_f8@lab.ntt.co.jp
Subject: Re: [COMMITTERS] pgsql: Implement table partitioning.
In-Reply-To: <20171013163449.7dvbpfit3axwhyj6@alvherre.pgsql>
References: <E1cEgoz-0001H4-UP@gemulon.postgresql.org> <20171013163449.7dvbpfit3axwhyj6@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