Re: Auto Partitioning - Mailing list pgsql-hackers

From Markus Schiltknecht
Subject Re: Auto Partitioning
Date
Msg-id 46155565.2010605@bluegap.ch
Whole thread Raw
In response to Re: Auto Partitioning  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Auto Partitioning  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Auto Partitioning  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

Martijn van Oosterhout wrote:
>> The executor would have to be clever enough to not do a single index 
>> scan, but possibly scan through multiple indexes when asking for 
>> uniqueness, depending on the partitioning rule set.
> 
> But it's not the executor that checks uniqueness, it's built into the
> btre code.

Well, it's the executor calling into the btree code. Couldn't the 
executor choose which (btree-) indexes to query for uniqueness?

> If someone manages to crack uniqueness for GiST indexes, we'll have our
> answer, since it has exactly the same problem but on a different scale.
> (Or vice-versa, if some gets uniqueness for multiple indexes, we can do
> it for GiST also).

Uh.. can you elaborate on that? AFAICS, you would simply have to query 
multiple btree indexes and make sure non of them is violated. How would 
that help making unique GiST indexes possible? What's the problem there?

Regards

Markus


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: buildfarm minimum script versions
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Auto Partitioning