Re: [POC] hash partitioning
Jesper Pedersen <jesper.pedersen@redhat.com>
From: Jesper Pedersen <jesper.pedersen@redhat.com>
To: David Fetter <david@fetter.org>
Cc: Robert Haas <robertmhaas@gmail.com>,
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>,
amul sul <sulamul@gmail.com>, Dilip Kumar <dilipbalaut@gmail.com>,
Yugo Nagata <nagata@sraoss.co.jp>, David Steele <david@pgmasters.net>,
Greg Stark <stark@mit.edu>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-09-14T17:07:11Z
Lists: pgsql-hackers
On 09/14/2017 12:56 PM, Robert Haas wrote: > On Thu, Sep 14, 2017 at 12:54 PM, David Fetter <david@fetter.org> wrote: >> Should we be pointing the gun away from people's feet by making hash >> partitions that cover the space automagically when the partitioning >> scheme[1] is specified? In other words, do we have a good reason to have >> only some of the hash partitions so defined by default? > > Sure, we can add some convenience syntax for that, but I'd like to get > the basic stuff working before doing that kind of polishing. > > If nothing else, I assume Keith Fiske's pg_partman will provide a way > to magically DTRT about an hour after this goes in. But probably we > can do better in core easily enough. > Yeah, it would be nice to have a syntax like ) PARTITION BY HASH (col) WITH (AUTO_CREATE = 64); But then there also needs to be a way to create the 64 associated indexes too for everything to be easy. Best regards, Jesper
Commits
-
Add hash partitioning.
- 1aba8e651ac3 11.0 landed
-
Add sanity check for pg_proc.provariadic
- 35f059e9bdfb 11.0 landed
-
Add hash_combine64.
- b7f3eb31405f 11.0 landed
-
Make RelationGetPartitionDispatchInfo expand depth-first.
- 77b6b5e9ceca 11.0 cited
-
Introduce 64-bit hash functions with a 64-bit seed.
- 81c5e46c490e 11.0 cited
-
pg_dump: Add a --load-via-partition-root option.
- 23d7680d04b9 11.0 cited