X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A2B3854C26 for ; Sat, 19 Mar 2005 23:52:49 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95271-09 for ; Sat, 19 Mar 2005 23:52:45 +0000 (GMT) Received: from boutiquenumerique.com (boutiquenumerique.com [82.67.9.10]) by svr1.postgresql.org (Postfix) with ESMTP id C7A6152AA3 for ; Sat, 19 Mar 2005 23:52:43 +0000 (GMT) Received: (qmail 14770 invoked from network); 20 Mar 2005 00:52:54 +0100 Received: from unknown (HELO localhost) (boutiquenumerique-lists@192.168.0.4) by boutiquenumerique.com with SMTP; 20 Mar 2005 00:52:54 +0100 Date: Sun, 20 Mar 2005 00:52:45 +0100 To: "Josh Berkus" , pgsql-performance@postgresql.org Subject: Re: What needs to be done for real Partitioning? References: <200503191202.38089.josh@agliodbs.com> <2092.1111273359@sss.pgh.pa.us> From: PFC Organization: =?iso-8859-15?Q?La_Boutique_Num=E9rique?= Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <2092.1111273359@sss.pgh.pa.us> User-Agent: Opera M2(BETA2)/8.0 (Linux, build 987) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/379 X-Sequence-Number: 11084 > tableoid would accomplish that already, assuming that the "partitioned > table" is effectively a view on separate physical tables. > > regards, tom lane Very good. Also note the possibility to mark a partition READ ONLY. Or even a table. It does not seem very useful but just think that for instance the "1999", "2000" ... "2004" partitions of a big archive probably never change. READLONY means we're sure they never change, thus no need to backup them every time. Keeping the example of some DB arranged by years / current year / current month, Just backup the "current month" part every day and the "current year" every month when you switch partitions. This could be achieved also by storing the time of last modification of a table somewhere.