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 1847C5680B for ; Sun, 20 Mar 2005 06:14:21 +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 81869-06 for ; Sun, 20 Mar 2005 06:14:11 +0000 (GMT) Received: from stark.xeocode.com (stark.xeocode.com [216.58.44.227]) by svr1.postgresql.org (Postfix) with ESMTP id 03E0056803 for ; Sun, 20 Mar 2005 06:14:09 +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 1DCthK-0006Yn-00; Sun, 20 Mar 2005 01:14:02 -0500 To: Josh Berkus Cc: pgsql-performance@postgresql.org Subject: Re: What needs to be done for real Partitioning? References: <200503191202.38089.josh@agliodbs.com> In-Reply-To: <200503191202.38089.josh@agliodbs.com> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 20 Mar 2005 01:14:01 -0500 Message-ID: <87br9ehmja.fsf@stark.xeocode.com> Lines: 99 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.016 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/386 X-Sequence-Number: 11091 Josh Berkus writes: > -- INSERT INTO should automatically create new partitions where necessary > ---- new tables should automatically inherit all constraints, indexes, > keys of "parent" table I think you're going about this backwards. Phase I should be an entirely manual system where you add and remove partitions manually and create and drop indexes you want manually. You need these low level interfaces anyways for a complete system, it doesn't make sense to have everything automatic and then later try to wedge in a low level interface. Only once you have that do you then start offering options to do these things automatically. I also think there are a few other components mixed up in your proposal that are really not integral to partitioned tables. Tablespaces and expression indexes may well be useful features to use in combination with partitioned tables, but they shouldn't be required or automatic.