Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c47US-0000WZ-W9 for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Nov 2016 14:35:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c47US-0004xk-Ee for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Nov 2016 14:35:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c47T4-0003Jk-CE for pgsql-hackers@postgresql.org; Tue, 08 Nov 2016 14:33:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c47T2-0002py-3h for pgsql-hackers@postgresql.org; Tue, 08 Nov 2016 14:33:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uA8EXYEE019166; Tue, 8 Nov 2016 09:33:34 -0500 From: Tom Lane To: Jim Nasby cc: Pg Hackers , Karl Lehenbauer Subject: Re: Add support for SRF and returning composites to pl/tcl In-reply-to: <0c54d5eb-c184-3df9-ab66-0b000380eab3@BlueTreble.com> References: <8658.1478394740@sss.pgh.pa.us> <8785.1478456128@sss.pgh.pa.us> <0c54d5eb-c184-3df9-ab66-0b000380eab3@BlueTreble.com> Comments: In-reply-to Jim Nasby message dated "Mon, 07 Nov 2016 16:09:57 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19164.1478615614.1@sss.pgh.pa.us> Date: Tue, 08 Nov 2016 09:33:34 -0500 Message-ID: <19165.1478615614@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) 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 Jim Nasby writes: > Hrm, I completely spaced on the fact that composite returns are > essentially the same thing as trigger returns. ISTM we should be able to > use the same code for both. IIRC those magic elements could end up in > any SPI result, so that handling certainly needs to be the same. > Have you had a chance to look at this or should I? As things stand in HEAD, the behavior is about the same, but the error messages are not --- in one case they mention triggers and of course the other doesn't. There are a couple of other minor things in the way of unifying the two hunks of code, so I concluded it probably wasn't worth the trouble. But feel free to take another look if it bugs you. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers