X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DB3F952D45 for ; Fri, 25 Feb 2005 18:27:53 +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 34487-09 for ; Fri, 25 Feb 2005 18:27:49 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7A38D52A6F for ; Fri, 25 Feb 2005 18:27:48 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j1PIS6xT006955; Fri, 25 Feb 2005 13:28:07 -0500 (EST) To: Markus Schaber Cc: Gavin Sherry , Neil Conway , pgsql-hackers@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Where are we on stored procedures? In-reply-to: <421F6C8E.40804@logi-track.com> References: <26903.1109275995@sss.pgh.pa.us> <29295.1109295241@sss.pgh.pa.us> <421F6C8E.40804@logi-track.com> Comments: In-reply-to Markus Schaber message dated "Fri, 25 Feb 2005 19:21:02 +0100" Date: Fri, 25 Feb 2005 13:28:06 -0500 Message-ID: <6954.1109356086@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/888 X-Sequence-Number: 64716 Markus Schaber writes: > Tom Lane schrieb: >> given the improved support in 8.0 for anonymous record types, we could >> in theory have the backend invent a record type on-the-fly to match >> whatever list of OUT parameters a particular function has.) > It would not be necessarily on the fly, at least in the first step we > possibly get away with declaraing the returned tuples at creation time > and implicitly creating those tuple types. The declaration could be like > "returns (touchedrows int, somethingelse datetime), setof (article int, > description text)" for a function/method that has two resultsets, one of > those with always one row. The advantage of not explicitly creating the rowtypes is that we don't need to worry about choosing nonconflicting names for them. So I think I'd go down the anonymous-rowtype path even in the first cut. regards, tom lane