Re: [HACKERS] SQL procedures

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: [HACKERS] SQL procedures
Дата
Msg-id CANP8+jJNyQ3tXgqbuTfMw3euHk8ygJnrLHUaweM+N53MdABmbA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] SQL procedures  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: [HACKERS] SQL procedures  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-hackers
On 14 November 2017 at 12:56, Daniel Verite <daniel@manitou-mail.org> wrote:
>         Tom Lane wrote:
>
>> Do we really want the existence of a function foo(int) to mean
>> that you can't create a SQL procedure named
>> foo and taking one int argument?
>
> Isn't it pretty much implied by the
> ALTER | DROP ROUTINE foo(...)
> commands where foo(...) may be either a procedure
> or a function? It doesn't look like it could be both.

It doesn't seem particularly troublesome to create another catalog
table, if needed, so that shouldn't drive our thinking.

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?

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Proposal: Local indexes for partitioned table
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [HACKERS] parallelize queries containing initplans