From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
---|---|
To: | "Matteo Bertini" <matteob(at)naufraghi(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: hint unique result fro union |
Date: | 2006-08-16 18:31:13 |
Message-ID: | c2d9e70e0608161131n5e78d04aw1af103869ebc8902@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Mainly, thinking about partitions, I'd like to create a small, frequently
> accessed partition and a big, rarely accessed partition.
>
> I'd like to hint pg to stop the query on the parent partition at the first
> found item (and so hint not to analyze all the childs), because I know the
> index I'm using is unique.
>
what you want is know as "Constraint Exclusion"
http://www.postgresql.org/docs/8.1/static/ddl-partitioning.html#DDL-PARTITIONING-CONSTRAINT-EXCLUSION
--
regards,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
From | Date | Subject | |
---|---|---|---|
Next Message | Javier de la Torre | 2006-08-16 18:37:23 | Re: Move db files from one pgsql instance to another |
Previous Message | Jeff Davis | 2006-08-16 18:22:54 | Re: Move db files from one pgsql instance to another |