X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0478BD1C90E for ; Tue, 29 Jul 2003 11:47:24 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 63000-09 for ; Tue, 29 Jul 2003 08:46:28 -0300 (ADT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by svr1.postgresql.org (Postfix) with ESMTP id C9506D1C7F3 for ; Tue, 29 Jul 2003 08:47:21 -0300 (ADT) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19hSwn-0007SY-00; Tue, 29 Jul 2003 13:47:17 +0200 Received: from [217.230.198.22] (helo=ecologic.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19hSwm-00070V-00; Tue, 29 Jul 2003 13:47:16 +0200 Message-ID: <3F265EC3.5010603@ecologic.de> Date: Tue, 29 Jul 2003 13:47:15 +0200 From: Dani Oderbolz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Romildo Wildgrube Cc: pgsql-admin@postgresql.org Subject: Re: Partition DB Tables by month References: <3F25BC0B.3050000@ragingnet.com> In-Reply-To: <3F25BC0B.3050000@ragingnet.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/284 X-Sequence-Number: 9624 Romildo Wildgrube wrote: > Hi, > > Is there a way to break the data files by month like in Oracle so that > I can easely drop the tables on a monthly basis? Is this something > postgres supports or is there a work around solution? Hmm, as far as I know its not supported. But I could think of a solution of a table per month which are then hidden behind a view which does a UNION ALL on all of them. You could even automate the Adminostration of this via a Function. I mean, in Oracle Partitions behave like single tables, so this would simulate somethig similar. But I think the Optimizer would not be able to see that he must only access the table table_Jan_2003 if you are restricting on January 2003... Cheers, Dani