From: | Japin Li <japinli(at)hotmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: A question about StartSubTransaction |
Date: | 2022-09-14 06:00:57 |
Message-ID: | MEYP282MB1669D1863009558F70EED735B6469@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, 14 Sep 2022 at 13:52, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Japin Li <japinli(at)hotmail(dot)com> writes:
>> 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.
>
Thanks for the explanation! Maybe more comments here is better.
--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2022-09-14 06:39:55 | Re: A question about wording in messages |
Previous Message | Tom Lane | 2022-09-14 05:52:50 | Re: A question about StartSubTransaction |