Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJkjo-0006I1-HG for pgsql-general@arkaria.postgresql.org; Tue, 09 Mar 2021 22:22:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJkjn-0003Os-Fh for pgsql-general@arkaria.postgresql.org; Tue, 09 Mar 2021 22:21:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJkjn-0003Ol-8R for pgsql-general@lists.postgresql.org; Tue, 09 Mar 2021 22:21:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJkjl-0006kq-6b for pgsql-general@lists.postgresql.org; Tue, 09 Mar 2021 22:21:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 129MLnIq2047267; Tue, 9 Mar 2021 17:21:49 -0500 From: Tom Lane To: "David G. Johnston" cc: Peter Eisentraut , Guyren Howe , raf , Adrian Klaver , "Bysani, Ram" , "pgsql-general@lists.postgresql.org" Subject: Re: Need help with clarification on stored procedure support in PostGreSQL database In-reply-to: References: <29836c19-5321-7093-bc88-a82c6a497a36@aklaver.com> <20210308222228.gljiuauwdd4p3kxs@raf.org> <1932630.1615246316@sss.pgh.pa.us> <20210309005300.gdp2kjoy6bjwynaa@raf.org> <1994410.1615264880@sss.pgh.pa.us> <2043807.1615323448@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Tue, 09 Mar 2021 15:16:11 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2047265.1615328509.1@sss.pgh.pa.us> Date: Tue, 09 Mar 2021 17:21:49 -0500 Message-ID: <2047266.1615328509@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > The omission of the "OUT" parameter mode seems intentional since at present > our procedures do not support OUT mode parameters. Um, I just created one. I think this *used* to be true, and this bit of the docs didn't get fixed. If I back-patch this, I'll have to research when it changed. > Instead of "The difference" or "One difference" I would suggest: "However, > a procedure does not return a value, so there is no return type > declaration; though a procedure can declare INOUT (but not plain OUT) > parameters." Not sure if that's an improvement. > Relocating the links to the description instead of usage is good. The > additional procedure link after the examples seems redundant, particularly > as the linked to location doesn't actually have more examples. I was modeling that on the existing pattern in create_function.sgml, which has similar verbiage in the EXAMPLES section. But I suppose we could drop that if we have a link in the description section. regards, tom lane