Re: Why plpython functions increase transaction counter much more then plpgsql functions?

Поиск
Список
Период
Сортировка
От Michał Albrycht
Тема Re: Why plpython functions increase transaction counter much more then plpgsql functions?
Дата
Msg-id CACsoHGCsXBYbv__t2xDVxth1EroBTsO=SnfJror4HCy-XtN4Lg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Why plpython functions increase transaction counter much more then plpgsql functions?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
A quick look at PLy_spi_execute_query shows that it runs each command
in a subtransaction.  It pretty much has to, because the coding rules
for a Python method don't permit it to just longjmp out of the Python
interpreter, so it has to set up a subtransaction so it can catch any
error.  In this example, each subtransaction will consume an XID.

That makes sense. Thank you very much.
Regards,

Michał Albrycht 

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