Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 6487F9FB2C4 for ; Fri, 10 Nov 2006 14:34:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 06223-05 for ; Fri, 10 Nov 2006 18:34:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id DE16D9FB2C0 for ; Fri, 10 Nov 2006 14:34:41 -0400 (AST) Received: from [192.168.1.95] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kAAIYdEH017071 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 10 Nov 2006 10:34:40 -0800 Subject: Re: Question on partitioning From: "Joshua D. Drake" To: Richard Broersma Jr Cc: Mark Steben , pgsql-admin@postgresql.org In-Reply-To: <129402.28483.qm@web31803.mail.mud.yahoo.com> References: <129402.28483.qm@web31803.mail.mud.yahoo.com> Content-Type: text/plain Organization: Command Prompt, Inc. Date: Fri, 10 Nov 2006 10:35:46 -0800 Message-Id: <1163183746.6530.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 10 Nov 2006 10:34:41 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/109 X-Sequence-Number: 23636 > > My question is this: How would I handle a query that queries > > On another Non-partitioned column, say, ENTRY_DATE? Could I design an index > > On the master table that would reference ENTRY-DATE across partitions or > > will > > I need to build indexes and queries on each partition? Indexes yes, queries no. You use a check constraint on the child tables to allow the planner to determine which partitions will be used in a particular query. Sincerely, Joshua D. Drake -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate