Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 221399FB7B7 for ; Mon, 2 Apr 2007 13:44:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 09737-04 for ; Mon, 2 Apr 2007 13:44:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 87A459FB655 for ; Mon, 2 Apr 2007 13:44:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l32GiQ8s010901; Mon, 2 Apr 2007 12:44:26 -0400 (EDT) To: Peter Eisentraut cc: pgsql-sql@postgresql.org Subject: Re: Calling void functions In-reply-to: <200704021002.26282.peter_e@gmx.net> References: <200704021002.26282.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Mon, 02 Apr 2007 10:02:26 +0200" Date: Mon, 02 Apr 2007 12:44:26 -0400 Message-ID: <10900.1175532266@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/10 X-Sequence-Number: 28010 Peter Eisentraut writes: > I'm informed that the last statement of a function that returns void cannot be > a SELECT. How else is one supposed to call another function which also > returns void? Hmm, seems like the best answer is to rejigger the order of the tests in check_sql_fn_retval. I think that logic was designed before we had an idea of VOID-returning functions. regards, tom lane