From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Luca Ferrari <fluca1978@infinito.it>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: xmin increasing within a transaction block?
Date: Mon, 06 Nov 2017 09:26:17 -0500
Message-ID: <9025.1509978377@sss.pgh.pa.us> (raw)
In-Reply-To: <20171106125330.gcozh4ijjrkn6shq@alvherre.pgsql>
References: <20171106125330.gcozh4ijjrkn6shq@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Luca Ferrari wrote:
>> Why is xmin greater than the current transaction id (and most notably
>> not "fixed")?
> Something is using subtransactions there. My first guess would be that
> there are triggers with EXCEPTION blocks, but your example doesn't show
> any. Or maybe you have event triggers.
I can reproduce the example if I "\set ON_ERROR_ROLLBACK on" in psql.
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, fluca1978@infinito.it
Subject: Re: xmin increasing within a transaction block?
In-Reply-To: <9025.1509978377@sss.pgh.pa.us>
References: <20171106125330.gcozh4ijjrkn6shq@alvherre.pgsql> <9025.1509978377@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox