pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: When to use PARTITION BY HASH?
Date: Mon, 8 Jun 2020 08:07:04 -0500
Message-ID: <0592c44a-cd2b-da4b-4dea-2017ae41507a@gmail.com> (raw)
In-Reply-To: <CACACo5SSz1YVDQSw1nVZ5AJmi23NXVaK4rammnzKMdN=j2rQZQ@mail.gmail.com>
References: <CACACo5StuUuFox+65KQHB8u+51kMUcEeQuV=XmsUv7d8VnaO7A@mail.gmail.com>
	<CACxu=vLWZtmpfZqKBi9R4z7NTpd6iEKLXfEWGHxTYMECoTZSpQ@mail.gmail.com>
	<CACACo5RxgQBO_cB97yFkWwLo_-Vs3WtUei2KszGg2LkJ95uiXA@mail.gmail.com>
	<CACxu=v+-xS8bpo_4H38Ck=b3rjeyM20JzTWLRco1G_0XFDmDrQ@mail.gmail.com>
	<CACACo5SSz1YVDQSw1nVZ5AJmi23NXVaK4rammnzKMdN=j2rQZQ@mail.gmail.com>

On 6/8/20 3:40 AM, Oleksandr Shulgin wrote:
[snip]
> I've found the original commit adding this feature in version 11: 
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=1aba8e651ac3e37e1d2d875842de1e0ed22a6...
> It says:
>
> "Hash partitioning is useful when you want to partition a growing data
> set evenly.  This can be useful to keep table sizes reasonable, which
> makes maintenance operations such as VACUUM faster, or to enable
> partition-wise join."

How does hashed (meaning "randomly?) distribution of records make 
partition-wise joins more efficient?

Or -- since I interpret that as having to do with "locality of data" -- am I 
misunderstanding the meaning of "partition-wise joins"?

-- 
Angular momentum makes the world go 'round.

view thread (22+ messages)  latest in thread

Message-ID: <0592c44a-cd2b-da4b-4dea-2017ae41507a@gmail.com>
Permalink:  ../0592c44a-cd2b-da4b-4dea-2017ae41507a@gmail.com/
Also on:    postgresql.org/message-id/0592c44a-cd2b-da4b-4dea-2017ae41507a@gmail.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: ronljohnsonjr@gmail.com, pgsql-general@lists.postgresql.org
  Subject: Re: When to use PARTITION BY HASH?
  In-Reply-To: <0592c44a-cd2b-da4b-4dea-2017ae41507a@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