Re: procedures and plpgsql PERFORM

Поиск
Список
Период
Сортировка
Искать
От
Ashutosh Bapat
Тема
Re: procedures and plpgsql PERFORM
Дата
Msg-id
CAFjFpRcj=DgpVF2fkL5HMuXQAcaOHDR2oDuOhO5SWdC0m5GrBQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
procedures and plpgsql PERFORM Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: procedures and plpgsql PERFORM Tom Lane <tgl@sss.pgh.pa.us>
Re: procedures and plpgsql PERFORM Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: procedures and plpgsql PERFORM Merlin Moncure <mmoncure@gmail.com>
Re: procedures and plpgsql PERFORM "David G. Johnston" <david.g.johnston@gmail.com>
Re: procedures and plpgsql PERFORM Pavel Stehule <pavel.stehule@gmail.com>
Re: procedures and plpgsql PERFORM Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: procedures and plpgsql PERFORM Pavel Stehule <pavel.stehule@gmail.com>
Re: procedures and plpgsql PERFORM Merlin Moncure <mmoncure@gmail.com>
Re: procedures and plpgsql PERFORM Pavel Stehule <pavel.stehule@gmail.com>
Re: procedures and plpgsql PERFORM Merlin Moncure <mmoncure@gmail.com>
Re: procedures and plpgsql PERFORM Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Re: procedures and plpgsql PERFORM Pavel Stehule <pavel.stehule@gmail.com>
Re: procedures and plpgsql PERFORM Merlin Moncure <mmoncure@gmail.com>
On Thu, Dec 14, 2017 at 8:08 PM, Tom Lane  wrote:
> Ashutosh Bapat  writes:
>> We allow a function to be invoked as part of PERFORM statement in plpgsql
>> ...
>> But we do not allow a procedure to be invoked this way
>
>> Procedures fit that category and like functions, I think, we should
>> allow them be invoked directly without any quoting and CALL
>> decoration.
>
> How is that going to work?  What if the procedure tries to commit the
> current transaction?

That can happen even today if somebody uses PERFORM 'call procedure()'
and procedure tries to commit the transaction. I don't think we have
any mechanism to prevent that. If we device one, it will be equally
applicable to PERFORM procedure().

-- 
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

В списке pgsql-hackers по дате отправления
От: Stephen Frost
Дата:
Сообщение: GSoC 2018
От: Ashutosh Bapat
Дата:
FAQ