Re: autonomous transactions

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: autonomous transactions
Дата
Msg-id CAFj8pRAS03iwBJoJFkYzwvp9Ytw8FeB-Cm8WMKHD2XtRfATV7g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: autonomous transactions  (Joel Jacobson <joel@trustly.com>)
Список pgsql-hackers


2016-08-31 15:09 GMT+02:00 Joel Jacobson <joel@trustly.com>:
On Wed, Aug 31, 2016 at 6:41 AM, Jaime Casanova
<jaime.casanova@2ndquadrant.com> wrote:
>
> On 30 August 2016 at 23:10, Joel Jacobson <joel@trustly.com> wrote:
> >
> > There should be a way to within the session and/or txn permanently
> > block autonomous transactions.
> >
>
> This will defeat one of the use cases of autonomous transactions: auditing

My idea on how to deal with this would be to mark the function to be
"AUTONOMOUS" similar to how a function is marked to be "PARALLEL
SAFE",
and to throw an error if a caller that has blocked autonomous
transactions tries to call a function that is marked to be autonomous.

That way none of the code that needs to be audited would ever get executed.

I like this idea - it allows better (cleaner) snapshot isolation.

Regards

Pavel
 


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Fix pg_receivexlog --synchronous
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: WAL consistency check facility