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 1k3o6J-00035d-0A for pgsql-docs@arkaria.postgresql.org; Thu, 06 Aug 2020 22:11:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k3o6H-0007c5-QX for pgsql-docs@arkaria.postgresql.org; Thu, 06 Aug 2020 22:11:01 +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 1k3o6H-0007bx-LJ for pgsql-docs@lists.postgresql.org; Thu, 06 Aug 2020 22:11:01 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k3o6B-0005WA-AC for pgsql-docs@lists.postgresql.org; Thu, 06 Aug 2020 22:11:00 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1k3o68-0005Zx-U8; Thu, 06 Aug 2020 18:10:52 -0400 Date: Thu, 6 Aug 2020 18:10:52 -0400 From: Bruce Momjian To: Robin Abbi Cc: Dave Cramer , pgsql-docs@lists.postgresql.org Subject: Re: Procedures Message-ID: <20200806221052.GA23547@momjian.us> References: <159653722937.654.5519018237996991238@wrigleys.postgresql.org> <20200806001758.GA29874@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Aug 6, 2020 at 02:30:55PM +0100, Robin Abbi wrote: > PostgreSQL went as far as release 10 without procedures. > Some third party resources written before 11 loosely conflate procedures with > functions. > Some third party resources written before 11 accurately state PostgreSQL has > functions but not procedures. > Referring to the PostgreSQL docs for 11 on, procedures have been added. > > For someone like me, coming to the subject without much of a hinterland other > than googling around, it seemed clear that there was a motivating case that > caused Procedures to be added to PostgreSQL, but I was not sufficiently > familiar with the domain to be able to readily intuit what it might have been. > > For example, Procedures say they have no return value, yet Functions can return > void. Not the same I agree, but I wouldn't be aware in which circumstances it > mattered. > > For me, perhaps the most useful thing would have been a small example > highlighting the essential thing(s) that procedures can do that functions could > not. Agreed, this doc area needs help. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee