Re: [POC] hash partitioning
Amul Sul <sulamul@gmail.com>
From: amul sul <sulamul@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Ashutosh Bapat <ashutosh.bapat@enterprisedb.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-05-15T10:57:13Z
Lists: pgsql-hackers
Attachments
- 0001-Cleanup_v2.patch (application/octet-stream) patch v2-0001
- 0002-hash-partitioning_another_design-v5.patch (application/octet-stream) patch v5-0002
On Wed, May 10, 2017 at 10:13 PM, Robert Haas <robertmhaas@gmail.com> wrote: > On Wed, May 10, 2017 at 8:34 AM, Ashutosh Bapat > <ashutosh.bapat@enterprisedb.com> wrote: >> Hash partitioning will partition the data based on the hash value of the >> partition key. Does that require collation? Should we throw an error/warning if >> collation is specified in PARTITION BY clause? > > Collation is only relevant for ordering, not equality. Since hash > opclasses provide only equality, not ordering, it's not relevant here. > I'm not sure whether we should error out if it's specified or just > silently ignore it. Maybe an ERROR is a good idea? But not sure. > IMHO, we could simply have a WARNING, and ignore collation, thoughts? Updated patches attached. Regards, Amul
Commits
-
Refactor get_partition_for_tuple a bit.
- f0a0c17c1b12 11.0 landed
-
Adopt Bob Jenkins' improved hash function for hash_any(). This changes the
- 8205258fa675 8.4.0 cited
-
Improve hash_any() to use word-wide fetches when hashing suitably aligned
- 2604359251d3 8.4.0 cited