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 A859E563D3 for ; Mon, 21 Mar 2005 03:33:23 +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 20705-05 for ; Mon, 21 Mar 2005 03:33:21 +0000 (GMT) Received: from stark.xeocode.com (stark.xeocode.com [216.58.44.227]) by svr1.postgresql.org (Postfix) with ESMTP id 6312C563BC for ; Mon, 21 Mar 2005 03:33:20 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1DDDfE-0000uU-00; Sun, 20 Mar 2005 22:33:12 -0500 To: Tom Lane Cc: Greg Stark , Josh Berkus , pgsql-performance@postgresql.org Subject: Re: What needs to be done for real Partitioning? References: <200503191202.38089.josh@agliodbs.com> <87br9ehmja.fsf@stark.xeocode.com> <8164.1111341510@sss.pgh.pa.us> <87oedeezb8.fsf@stark.xeocode.com> <14201.1111359925@sss.pgh.pa.us> In-Reply-To: <14201.1111359925@sss.pgh.pa.us> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 20 Mar 2005 22:33:12 -0500 Message-ID: <87acoxfzbb.fsf@stark.xeocode.com> Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/398 X-Sequence-Number: 11103 Tom Lane writes: > Greg Stark writes: > > You could argue for some sort of setup where you could take a partition > > "offline" during which you could safely do things like export or manipulate > > the data. But that's awfully limiting. What if I want to do things like add > > columns, or change data types, or any other manipulation that breaks the > > symmetry with the production partitioned table. > > [ scrapes eyebrows off ceiling... ] You don't really expect to be able > to do that kind of thing to just one partition do you? Well no. That's exactly why I would want to pull the partition out of the partitioned table so that I can then do whatever work I need to archive it without affecting the partitioned table. Take an analogous situation. I have a huge log file I want to rotate. The quickest most efficient way to do this would be to move it aside, HUP the daemon (or whatever else I have to do to get it to open a new file) then gzip and archive the old log files. -- greg