Re: Patch to check whether we are in TX when to lo_*

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch to check whether we are in TX when to lo_*
Дата
Msg-id 7104.973272785@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Patch to check whether we are in TX when to lo_*  (Denis Perchine <dyp@perchine.com>)
Ответы Re: Patch to check whether we are in TX when to lo_*  (Denis Perchine <dyp@perchine.com>)
Список pgsql-patches
Denis Perchine <dyp@perchine.com> writes:
> here is the patch attached which do check in each BLOB operation, if
> we are in transaction, and raise an error otherwise. This will prevent
> such mistakes.

Hmm.  I'm not sure if this is a good idea, or just overprotective
nannyism.  Comments anyone?

As is, it's certainly undesirable because it will break backend
lo_export and lo_import, neither of which need to be in an xact block.
Perhaps that could be worked around somehow, but is it worth the
trouble?

            regards, tom lane

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

Предыдущее
От: Denis Perchine
Дата:
Сообщение: Patch to check whether we are in TX when to lo_*
Следующее
От: Stephan Szabo
Дата:
Сообщение: Inherited column patches