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 AF14B3A48D6 for ; Fri, 21 Jan 2005 12:51:17 +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 04595-03 for ; Fri, 21 Jan 2005 12:51:05 +0000 (GMT) Received: from zeus.linuxsystems.be (zeus.linuxsystems.be [213.193.231.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0DFBB3A48AB for ; Fri, 21 Jan 2005 12:51:04 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zeus.linuxsystems.be (Postfix) with ESMTP id C03F63B085A; Fri, 21 Jan 2005 13:51:02 +0100 (CET) Received: from zeus.linuxsystems.be ([127.0.0.1]) by localhost (zeus [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04001-01; Fri, 21 Jan 2005 13:51:02 +0100 (CET) Received: from webmail.linuxsystems.be (localhost.localdomain [127.0.0.1]) by zeus.linuxsystems.be (Postfix) with ESMTP id 226253B0075; Fri, 21 Jan 2005 13:51:02 +0100 (CET) Received: from 212-100-172-237.adsl.easynet.be ([212.100.172.237]) (SquirrelMail authenticated user matt.ibridge.be); by webmail.linuxsystems.be with HTTP; Fri, 21 Jan 2005 13:51:02 +0100 (CET) Message-ID: <36073.212.100.172.237.1106311862.squirrel@212.100.172.237> In-Reply-To: <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> <20050121123008.GA13904@zoom.spline.inf.fu-berlin.de> Date: Fri, 21 Jan 2005 13:51:02 +0100 (CET) Subject: Re: From: "Matt Casters" To: "Yann Michel" Cc: "Matt Casters" , pgsql-performance@postgresql.org Reply-To: Matt.Casters@advalvas.be User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at linuxsystems.be X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.443 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST X-Spam-Level: * X-Archive-Number: 200501/381 X-Sequence-Number: 10071 >> > 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. This IS bad news. It would mean a serious change in the ETL. I think I can solve the other problems, but I don't know about this one... Regards, Matt