Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBiOU-0004Ym-2S for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 14:28:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eBiOT-0005aq-LQ for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 14:28:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBiM4-0001Em-7h for pgsql-general@postgresql.org; Mon, 06 Nov 2017 14:26:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBiM1-0006oH-Pb for pgsql-general@postgresql.org; Mon, 06 Nov 2017 14:26:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vA6EQHMp009026; Mon, 6 Nov 2017 09:26:17 -0500 From: Tom Lane To: Alvaro Herrera cc: Luca Ferrari , pgsql-general Subject: Re: xmin increasing within a transaction block? In-reply-to: <20171106125330.gcozh4ijjrkn6shq@alvherre.pgsql> References: <20171106125330.gcozh4ijjrkn6shq@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 06 Nov 2017 13:53:30 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9024.1509978377.1@sss.pgh.pa.us> Date: Mon, 06 Nov 2017 09:26:17 -0500 Message-ID: <9025.1509978377@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Alvaro Herrera 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