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 1lJOGs-0000RL-Jy for pgsql-general@arkaria.postgresql.org; Mon, 08 Mar 2021 22:22:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJOGq-0002b6-1J for pgsql-general@arkaria.postgresql.org; Mon, 08 Mar 2021 22:22:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJOGp-0002ay-Pj for pgsql-general@lists.postgresql.org; Mon, 08 Mar 2021 22:22:35 +0000 Received: from ook.raf.org ([139.99.156.21]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJOGm-0001YI-Ui for pgsql-general@lists.postgresql.org; Mon, 08 Mar 2021 22:22:34 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 924D95DE48; Tue, 9 Mar 2021 09:22:29 +1100 (AEDT) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j02CgCUuYUlx; Tue, 9 Mar 2021 09:22:28 +1100 (AEDT) Received: by ook.raf.org (Postfix, from userid 1001) id C22B15E4FA; Tue, 9 Mar 2021 09:22:28 +1100 (AEDT) Date: Tue, 9 Mar 2021 09:22:28 +1100 From: raf To: Adrian Klaver Cc: "Bysani, Ram" , "pgsql-general@lists.postgresql.org" Subject: Re: Need help with clarification on stored procedure support in PostGreSQL database Message-ID: <20210308222228.gljiuauwdd4p3kxs@raf.org> References: <29836c19-5321-7093-bc88-a82c6a497a36@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <29836c19-5321-7093-bc88-a82c6a497a36@aklaver.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Mar 07, 2021 at 11:01:07AM -0800, Adrian Klaver wrote: > On 3/7/21 10:48 AM, Bysani, Ram wrote: > > PostgreSQL version: 11.11 > > > > Operating system:   Linux 64 bit > > > > Description: > > > > Greetings > > > > We have found posts on several forums that Stored Procedures are not > > supported in PostGreSQL databasel. > > > > We looked at the documentation but it is not clear when Stored Procedure > > support was added. We are aware that Functions are supported. > > > > Please provide details / clarify if Stored Procedures are available in > > versions 11.x, 12.x, 13.x Please also confirm when it was actually > > added. > > > > https://www.postgresql.org/docs/ > > > > Thanks for your time > > Go to page David Johnson posted: > > https://www.postgresql.org/docs/current/sql-createprocedure.html > > and look at 'Supported Versions:' at top of page. > > > Regards > > Ram Bysani > > -- > Adrian Klaver > adrian.klaver@aklaver.com Is there any important different between a stored procedure and a stored function that returns void? I've been using functions for everything but calling them procedures in my head (even though most of them do return a value or result set). cheers, raf