From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Simon Riggs <simon@2ndquadrant.com>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] SQL procedures
Date: Wed, 15 Nov 2017 09:56:18 +0100
Message-ID: <1510736178.2424.10.camel@cybertec.at> (raw)
In-Reply-To: <CANP8+jJNyQ3tXgqbuTfMw3euHk8ygJnrLHUaweM+N53MdABmbA@mail.gmail.com>
References: <19884.1510676091@sss.pgh.pa.us>
<83b39249-a6f0-4bd8-9ba6-cbfadc32f810@manitou-mail.org>
<CANP8+jJNyQ3tXgqbuTfMw3euHk8ygJnrLHUaweM+N53MdABmbA@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: laurenz.albe@cybertec.at, simon@2ndquadrant.com, daniel@manitou-mail.org, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
Subject: Re: [HACKERS] SQL procedures
In-Reply-To: <1510736178.2424.10.camel@cybertec.at>
References: <19884.1510676091@sss.pgh.pa.us> <83b39249-a6f0-4bd8-9ba6-cbfadc32f810@manitou-mail.org> <CANP8+jJNyQ3tXgqbuTfMw3euHk8ygJnrLHUaweM+N53MdABmbA@mail.gmail.com> <1510736178.2424.10.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox