Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 69CF064FD07 for ; Wed, 22 Oct 2008 18:49:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 51578-01 for ; Wed, 22 Oct 2008 18:49:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound-mail-119.bluehost.com (outbound-mail-119.bluehost.com [69.89.22.19]) by postgresql.org (Postfix) with SMTP id 2825A64FCFD for ; Wed, 22 Oct 2008 18:49:54 -0300 (ADT) Received: (qmail 3165 invoked by uid 0); 22 Oct 2008 21:49:51 -0000 Received: from unknown (HELO fast22.fastdomain.com) (74.220.199.22) by outboundproxy3.bluehost.com with SMTP; 22 Oct 2008 21:49:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=frogthinker.org; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=w57fd4iakmFGO7CFsCAq94MK58dh8r8UhqH9uCPrR0kIUiOihekZWYp7YOzqvn2Sv0IQ4a+Kz4uqFUOYVY28XLJSO+AMOzepeZfbfOl0vLHSjWpjx8/rcvbPX0aAkmFV; Received: from c-71-192-35-139.hsd1.ma.comcast.net ([71.192.35.139] helo=[192.168.0.14]) by fast22.fastdomain.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1KslaR-00011Z-FA; Wed, 22 Oct 2008 15:49:51 -0600 Message-ID: <48FFA001.7030201@frogthinker.org> Date: Wed, 22 Oct 2008 17:49:53 -0400 From: Emmanuel Cecchet Organization: Frog Thinker User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Jaime Casanova CC: PostgreSQL-development Subject: Re: Fwd: [PATCHES] Auto Partitioning Patch - WIP version 1 References: <200803211518.m2LFIfJ12397@momjian.us> <3073cc9b0810181308y91deed8wac2df9bc925200f5@mail.gmail.com> <3073cc9b0810220743p11526a74ve9769a416c1707cf@mail.gmail.com> <3073cc9b0810220744y987173avd560a33fcb58ede5@mail.gmail.com> In-Reply-To: <3073cc9b0810220744y987173avd560a33fcb58ede5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {2846:fast22.fastdomain.com:frogthin:frogthinker.org} {sentby:smtp auth 71.192.35.139 authed with manu+frogthinker.org} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.41 tagged_above=0 required=5 tests=SUBJECT_FUZZY_TION=0.41 X-Spam-Level: X-Archive-Number: 200810/1129 X-Sequence-Number: 126146 Another advantage of triggers over rules is that it would work with COPY which is probably a desired feature. Emmanuel Jaime Casanova wrote: > just remembering that -patches is a dead list, so i'm sending this to > -hackers where it will have more visibility... > > ---------- Forwarded message ---------- > From: Jaime Casanova > Date: Oct 22, 2008 9:43 AM > Subject: Re: [PATCHES] Auto Partitioning Patch - WIP version 1 > To: Nikhil Sontakke > Cc: Bruce Momjian , NikhilS , > Simon Riggs , pgsql-patches@postgresql.org > > > On 10/22/08, Nikhil Sontakke wrote: > >> Hi, >> >> >>>>> Thanks for taking a look. But if I am not mistaken Gavin and co. are >>>>> >> working >> >>>>> on a much exhaustive proposal. In light of that maybe this patch might >>>>> >> not >> >>>>> be needed in the first place? >>>>> >>>>> I will wait for discussion and a subsequent collective consensus here, >>>>> before deciding the further course of actions. >>>>> >>>> I think it is unwise to wait on Gavin for a more complex implemention >>>> --- we might end up with nothing for 8.4. As long as your syntax is >>>> compatible with whatever Gavin proposed Gavin can add on to your patch >>>> once it is applied. >>>> >>>> >>> seems like you're a prophet... or i miss something? >>> >>> >> :) >> >> Maybe I will try to summarize the functionality of this patch, rebase it >> against latest CVS head and try to get it on the commitfest queue atleast >> for further feedback to keep the ball rolling on auto-partitioning... >> >> > > yeah! i was thinking on doing that but still have no time... and > frankly you're the best man for the job ;) > > one thing i was thinking of is to use triggers instead of rules just > as our current docs recommends > http://www.postgresql.org/docs/8.3/static/ddl-partitioning.html > > with the benefit that a trigger can check if the child table exists > for the range being inserted and if not it can create it first... > haven't looked at the code in the detail but seems that your patch is > still missing the "create rule" part so we are in time to change > that... no? > -- Emmanuel Cecchet FTO @ Frog Thinker Open Source Development & Consulting -- Web: http://www.frogthinker.org email: manu@frogthinker.org Skype: emmanuel_cecchet