From: | <pmagnoli(at)systemevolution(dot)it> |
---|---|
To: | josh(at)agliodbs(dot)com, pgsql-hackers(at)postgresql(dot)org |
Cc: | simon(at)2ndquadrant(dot)com |
Subject: | Constraint exclusion, some questions |
Date: | 2005-09-29 09:24:23 |
Message-ID: | inkngn.sykhah@mail.systemevolution.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi, I'm testing constraint exclusion on PostgreSQL 8.1 beta 1 on windows with
the GEOIP countries database and I have a few questions:
1. Can I say that an index created on the "parent" table is a "global" index,
an index that spans over data in all derived tables?
2. Can I say that an index created on any of the "child" or "inheriting"
table is a "partition" index, that spans data belonging that single table
only?
(explain plan seems to confirm that, just to be shure)
3. Constraint exclusion works (prunes child tables) only if your query
contains a condition based on the check constraint (say constraint "A") and
it doesn't get the fact that the data requested lies just in one child table
if the condition is on another column (say constraint "B"), even if "global"
and "partition" indexes are present for constraint "B"
Based on that quick look it would be great to add the ability for the
optimizer to find the "good" child table from a global index, which would
make "table partitioning" or "constraint exclusion" even more effective.
Hope what I wrote makes sense.
Best regards
paolo
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2005-09-29 09:57:36 | Release build scripts |
Previous Message | Martijn van Oosterhout | 2005-09-29 08:11:12 | Re: Socket problem using beta2 on Windows-XP |