Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEtUn-0002u2-PO for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Nov 2017 08:56:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEtUm-0006zX-SX for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Nov 2017 08:56:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eEtUm-0006zN-N7 for pgsql-hackers@lists.postgresql.org; Wed, 15 Nov 2017 08:56:32 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eEtUf-0008IO-HD for pgsql-hackers@postgresql.org; Wed, 15 Nov 2017 08:56:32 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id F30AC47337; Wed, 15 Nov 2017 09:56:22 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id WnDBvBiqJ4EQ; Wed, 15 Nov 2017 09:56:20 +0100 (CET) Message-ID: <1510736178.2424.10.camel@cybertec.at> Subject: Re: [HACKERS] SQL procedures From: Laurenz Albe To: Simon Riggs , Daniel Verite Cc: Tom Lane , Peter Eisentraut , pgsql-hackers Date: Wed, 15 Nov 2017 09:56:18 +0100 In-Reply-To: References: <19884.1510676091@sss.pgh.pa.us> <83b39249-a6f0-4bd8-9ba6-cbfadc32f810@manitou-mail.org> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Simon Riggs wrote: > It would seem to be implied by the SQLStandard that Functions and > Procedures occupy the same namespace, since they are both Routines. > > I can't see any benefit from having foo() function AND foo() procedure > at same time. It would certainly confuse most people that come from > programming languages without that distinction, but maybe someone > knows some Oracle-foo that I don't? The question already has been decided on the (better) basis of the SQL standard, but for what it is worth: Oracle has functions and procedures in the same name space. Yours, Laurenz Albe