Re: Stored procedures and out parameters

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Stored procedures and out parameters
Дата
Msg-id CAKFQuwamh9RzxsCyDZHeupQX3adWaYTePQ0D0_dXZygx7vFmRg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Stored procedures and out parameters  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: Stored procedures and out parameters
Список pgsql-hackers
On Wed, Aug 22, 2018 at 9:39 AM, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
On 16/08/2018 19:54, Shay Rojansky wrote:
> I don't think there's anything really Microsoft-specific about any of
> this (except maybe in the history) - just like JDBC and psycopg, there's
> simply a single standard way in the database API for invoking
> server-side things, and not two ways.

Have you looked what those standard interfaces do in other SQL
implementations (e.g., Oracle, DB2, Derby, MySQL)?  AFAICT in no case
does it involve allowing functions to be called as procedures or vice versa.

That is all well and good except PostgreSQL took its sweet time implementing procedures and so effectively encouraged its community to dual-purpose functions.  Now the community is simply asking core to recognize that history and dual-purpose the "CALL" command.

What others have done doesn't change the situation that has arisen for PostgreSQL due to its implementation history.

David J.

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Stored procedures and out parameters
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Query is over 2x slower with jit=on