Re: Question on round-robin partitioning

From: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
To: Steven Lembark <lembark(at)wrkhors(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question on round-robin partitioning
Date: 2009-08-29 11:31:50
Message-ID: BB652688-D0AF-43C7-A01A-0F1D3367E5C1@solfertje.student.utwente.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 28 Aug 2009, at 21:13, Steven Lembark wrote:
> If I query on foo_id % 8, explain shows the optimizer
> using the constraint (1).
>
> If I just query on foo_id = 100, the exclusion is
> not used (2).
>
> What would be the best way to feed the optimizer
> enough data to use the partitioning with equality
> queries?

What about foo_id = 100 AND foo_id % 8 = 100 % 8 ?

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.

!DSPAM:737,4a9911a711861381017743!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jerry LeVan 2009-08-29 16:08:45 Snow Leopard and PG 8.4 problems....
Previous Message Tom Lane 2009-08-28 22:06:40 Re: High load on commit after important schema changes