Re: Hash partitioning.

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Yuri Levinsky <yuril(at)celltick(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Hash partitioning.
Date: 2013-06-25 15:06:53
Message-ID: 20130625150653.GB18297@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 25, 2013 at 11:02:40AM -0400, Robert Haas wrote:
> On Tue, Jun 25, 2013 at 9:21 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > On Tue, Jun 25, 2013 at 03:48:19PM +0300, Yuri Levinsky wrote:
> >> Hi,
> >>
> >> Do we have any plans to implement Hash Partitioning, maybe I missing this
> >> feature?
> >
> > You can do it by writing your own constraint and trigger functions that
> > control the hashing.
>
> Not really. Constraint exclusion won't kick in for a constraint like
> CHECK (hashme(a) % 16 == 3) and a WHERE clause of the form a = 42.

Uh, I thought we checked the constant against every CHECK constraint and
only scanned partitions that matched. Why does this not work?

> Of course, since partitioning generally doesn't improve performance in
> PostgreSQL anyway, it's not clear why you'd want to do this in the

I think partitioning does improve performance by reducing index depth.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2013-06-25 15:15:24 Re: Hash partitioning.
Previous Message Robert Haas 2013-06-25 15:02:40 Re: Hash partitioning.