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 629433A47C4 for ; Fri, 21 Jan 2005 12:30: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 02349-02 for ; Fri, 21 Jan 2005 12:30:13 +0000 (GMT) Received: from zoom.spline.inf.fu-berlin.de (zoom.spline.inf.fu-berlin.de [160.45.117.148]) by svr1.postgresql.org (Postfix) with ESMTP id A365A3A4923 for ; Fri, 21 Jan 2005 12:30:14 +0000 (GMT) Received: by zoom.spline.inf.fu-berlin.de (Postfix, from userid 2091) id 811E68D616; Fri, 21 Jan 2005 13:30:09 +0100 (CET) Date: Fri, 21 Jan 2005 13:30:08 +0100 From: Yann Michel To: Matt Casters Cc: pgsql-performance@postgresql.org Subject: Re: Message-ID: <20050121123008.GA13904@zoom.spline.inf.fu-berlin.de> References: <16153.193.190.212.113.1106213675.squirrel@193.190.212.113> <20050120142603.GM10437@ns.snowman.net> <33c6269f050120083177fa0e83@mail.gmail.com> <20050121001427.GA10806@wolff.to> <12670.193.190.212.113.1106297446.squirrel@193.190.212.113> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12670.193.190.212.113.1106297446.squirrel@193.190.212.113> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/380 X-Sequence-Number: 10070 Hi, On Fri, Jan 21, 2005 at 09:50:46AM +0100, Matt Casters wrote: > > > Some people have been doing it using a union view. There isn't actually > > a partition feature. > > Actually, there is. If found this example on pgsql-performance: > > >> CREATE TABLE super_foo ( partition NUMERIC, bar NUMERIC ); > >> ANALYZE super_foo ; > >> > >> CREATE TABLE sub_foo1 () INHERITS ( super_foo ); [...] > >> > >> CREATE TABLE sub_foo2 () INHERITS ( super_foo ); [...] > >> Yes, this could be used instead of a view. But there is one thing missing. You can't just insert into super_foo and aquire the "correct partition". You will still have to insert into the correct underlying table. "Real" partitioning will take care of correct partition selection. Regards, Yann