Why there are TRANS_START and TRANS_INPROGRESS

From: DT <kurt023(at)hotmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Why there are TRANS_START and TRANS_INPROGRESS
Date: 2013-10-22 10:44:31
Message-ID: BAY173-W45819B7090FAD69C0D3F38E6020@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm reading code of xact.c, and I found the only difference between TRANS_START
and TRANS_INPROGRESS is when transaction aborts in TRANS_START status we set
status to TRANS_INPROGRESS so AbortTransaction() will not report WARNING.
So I wonder to know the reason why we distinguish them?

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2013-10-22 11:22:47 Re: Why there are TRANS_START and TRANS_INPROGRESS
Previous Message Torsten Förtsch 2013-10-22 10:03:31 Re: locks held during commit with synchronous replication