Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xwz8y-00019n-JR for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Dec 2014 20:06:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xwz8y-000178-4P for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Dec 2014 20:06:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xwz8x-000172-2i for pgsql-hackers@postgresql.org; Fri, 05 Dec 2014 20:06:23 +0000 Received: from mail-by2on0660.outbound.protection.outlook.com ([2a01:111:f400:fc0c::660] helo=na01-by2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xwz8t-000395-GO for pgsql-hackers@postgresql.org; Fri, 05 Dec 2014 20:06:21 +0000 Received: from BN3PR11MB0340.namprd11.prod.outlook.com (25.161.220.22) by BN3PR11MB0209.namprd11.prod.outlook.com (25.160.185.23) with Microsoft SMTP Server (TLS) id 15.1.31.17; Fri, 5 Dec 2014 20:06:11 +0000 Received: from decina.local (24.55.12.91) by BN3PR11MB0340.namprd11.prod.outlook.com (25.161.220.22) with Microsoft SMTP Server (TLS) id 15.1.31.17; Fri, 5 Dec 2014 20:06:06 +0000 Message-ID: <54821025.7010201@BlueTreble.com> Date: Fri, 5 Dec 2014 14:05:57 -0600 From: Jim Nasby User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Robert Haas CC: Amit Langote , Amit Kapila , Andres Freund , "Alvaro Herrera" , Bruce Momjian , "Pg Hackers" Subject: Re: On partitioning References: <20140829155607.GF7705@eldon.alvh.no-ip.org> <053501cffa30$ecdf8700$c69e9500$@lab.ntt.co.jp> <066501cffd52$3d919390$b8b4bab0$@lab.ntt.co.jp> <032601d00471$ea6f4280$bf4dc780$@lab.ntt.co.jp> <04da01d00917$2dde1010$899a3030$@lab.ntt.co.jp> <015b01d00eab$56d37700$047a6500$@lab.ntt.co.jp> <028401d01058$b4b19dd0$1e14d970$@lab.ntt.co.jp> <029e01d0106f$d511eb40$7f35c1c0$@lab.ntt.co.jp> <548205E5.7020505@BlueTreble.com> <54820CE3.7030706@BlueTreble.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [24.55.12.91] X-ClientProxiedBy: DM2PR10CA0083.namprd10.prod.outlook.com (10.141.241.51) To BN3PR11MB0340.namprd11.prod.outlook.com (25.161.220.22) X-Microsoft-Antispam: UriScan:;UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN3PR11MB0340; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BN3PR11MB0340; X-Forefront-PRVS: 04163EF38A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(51704005)(199003)(377454003)(479174003)(24454002)(189002)(107046002)(50466002)(65816999)(117636001)(92566001)(64126003)(106356001)(4396001)(1411001)(97736003)(21056001)(62966003)(77156002)(99396003)(54356999)(87266999)(76176999)(83506001)(122386002)(15975445007)(120916001)(40100003)(23676002)(86362001)(19580395003)(50986999)(93886004)(101416001)(110136001)(42186005)(20776003)(47776003)(65806001)(66066001)(31966008)(105586002)(19580405001)(46102003)(68736005)(36756003)(65956001)(87976001)(64706001)(85282002)(62816006)(336755003)(18886065003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR11MB0340; H:decina.local; FPR:; SPF:None; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BN3PR11MB0340; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN3PR11MB0209; X-OriginatorOrg: bluetreble.com X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 12/5/14, 2:02 PM, Robert Haas wrote: > On Fri, Dec 5, 2014 at 2:52 PM, Jim Nasby wrote: >> The other option would be to use some custom rowtype to store boundary >> values and have a method that can form a boundary tuple from a real one. >> Either way, I suspect this is better than frequently evaluating >> pg_node_trees. > > On what basis do you expect that? Every time you use a view, you're > using a pg_node_tree. Nobody's ever complained that having to reload > the pg_node_tree column was too slow, and I see no reason to suppose > that things would be any different here. > > I mean, we can certainly invent something new if there is a reason to > do so. But you (and a few other people) seem to be trying pretty hard > to avoid using the massive amount of infrastructure that we already > have to do almost this exact thing, which puzzles the heck out of me. My concern is how to do the routing of incoming tuples. I'm assuming it'd be significantly faster to compare two tuples than to run each tuple through a bunch of nodetrees. -- Jim Nasby, Data Architect, Blue Treble Consulting Data in Trouble? Get it in Treble! http://BlueTreble.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers