Re: A question about StartSubTransaction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: A question about StartSubTransaction
Дата
Msg-id 2535808.1663134770@sss.pgh.pa.us
обсуждение исходный текст
Ответ на A question about StartSubTransaction  (Japin Li <japinli@hotmail.com>)
Ответы Re: A question about StartSubTransaction  (Japin Li <japinli@hotmail.com>)
Список pgsql-hackers
Japin Li <japinli@hotmail.com> writes:
> IIRC, AtSubStart_Memory, AtSubStart_ResourceOwner and AfterTriggerBeginSubXact don't
> use s->state.

No, they don't.

> Why should we set s->state to TRANS_START and then TRANS_INPROGRESS?

I believe it's so that if an error gets thrown somewhere in that
area, we'll recover properly.  I'd be the first to say that this
stuff isn't terribly well-tested, since it's hard to force an
error there.

            regards, tom lane



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

Предыдущее
От: Japin Li
Дата:
Сообщение: A question about StartSubTransaction
Следующее
От: Japin Li
Дата:
Сообщение: Re: A question about StartSubTransaction