Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id ABE1F1337BCF for ; Fri, 15 Apr 2011 19:15:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 91695-08 for ; Fri, 15 Apr 2011 22:14:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 745991337B81 for ; Fri, 15 Apr 2011 19:14:58 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 15 Apr 2011 17:14:46 -0500 Message-Id: <4DA87D03020000250003C8E5@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 15 Apr 2011 17:14:43 -0500 From: "Kevin Grittner" To: "Merlin Moncure" Cc: ,"Tom Lane" , "Rikard Pavelic" Subject: Re: BUG #5982: recursive type crashes postgres References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org> <28780.1302894395@sss.pgh.pa.us> <4DA8AAD7.9000606@zg.htnet.hr> <4DA86904020000250003C8CD@gw.wicourts.gov> <4DA8720F020000250003C8D5@gw.wicourts.gov> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/119 X-Sequence-Number: 30038 Merlin Moncure wrote: > Consider we also have to send data to the database. I can > recursively wrap up data in the client using libpqtypes, fire it > to a receiving function which unnests it and processes it. This > is a couple of orders of magnitude faster than streaming it in > over multiple queries. I'll think on that. I hadn't really considered creating an ORM in the database engine itself, which seems to me to be what you're describing, but I guess it couldn't be worse than having an ORM on the other end of the wire. Is that a hard sell to your application programmers, or do you wear both hats? -Kevin