Re: why does plperl cache functions using just a bool for is_trigger

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: why does plperl cache functions using just a bool for is_trigger
Дата
Msg-id AANLkTiksQEPtgnFM1Y1TXqRuJ1viqBXJXVEGstcdY4dC@mail.gmail.com
обсуждение исходный текст
Ответ на Re: why does plperl cache functions using just a bool for is_trigger  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Nov 5, 2010 at 2:56 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> It's not cheap :-( ... but it's *necessary*.  There's no other way to
> get sane behavior.
>
> If the cost annoys you, you should put some effort into making subxact
> start/stop cheaper overall, rather than trying to avoid having one here.

I would be pretty happy even if only the *first* subxact was cheap.
That would take care of 99% of use implicit use cases leaving mostly
only cases where users have explicitly asked for a subxact with a
catch/throw block.

In particular it would cover the psql case of wanting to have a
subxact around every interactive command so the user can hit C-c
without undoing their whole transaction.

--
greg


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to share the result data of separated plan
Следующее
От: Hitoshi Harada
Дата:
Сообщение: Re: How to share the result data of separated plan