From: Abu Mushayeed <abumushayeed@yahoo.com>
To: pgsql-performance@postgresql.org
Subject: Partitioning
Date: Mon, 29 Jan 2007 22:42:20 -0800 (PST)
Message-ID: <106956.78868.qm@web57108.mail.re3.yahoo.com> (raw)
I have partitioned a table based on period (e.g., cdate >= '2007-01-01'::date and cdate<=.2007-03-31':;date).
Now, I am issuing query like cdate >= CURRENT_DATE - 1 and cdate <= CURRENT_DATE, it scans all the partitions. But if I do cdate >= '2007-01-01'::date and cdate<=.2007-03-31'::date it picks the correct partition. Also if I join the cdate field with another table, it does not pick the correct partition.
I would like to know if it is possible to pick the correct partition using the above example.
Thanks
Abu
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: abumushayeed@yahoo.com
Subject: Re: Partitioning
In-Reply-To: <106956.78868.qm@web57108.mail.re3.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox