Re: Check what has been done for a uncommitted prepared transaction - Mailing list pgsql-general

From Michael Paquier
Subject Re: Check what has been done for a uncommitted prepared transaction
Date
Msg-id 20200514080447.GE166343@paquier.xyz
Whole thread Raw
In response to Check what has been done for a uncommitted prepared transaction  (Andy Fan <zhihui.fan1213@gmail.com>)
Responses Re: Check what has been done for a uncommitted prepared transaction  (Andy Fan <zhihui.fan1213@gmail.com>)
List pgsql-general
On Thu, May 14, 2020 at 03:38:24PM +0800, Andy Fan wrote:
> I want to know what happens been done for an uncommitted prepared
> transaction with pg_waldump, however I can't find it.
>
> demo=*# prepare transaction 's';
> PREPARE TRANSACTION
> demo=# insert into mm select generate_series(1, 1000);
> INSERT 0 1000
>
> I can get the log for "prepared command" only,  but nothing was found for
> the insert statement.  what should I do?

Because in your previous sequence you inserted the data after
preparing the transaction and they are part of a completely different
transaction, no?
--
Michael

Attachment

pgsql-general by date:

Previous
From: Andy Fan
Date:
Subject: Re: Check what has been done for a uncommitted prepared transaction
Next
From: Magnus Hagander
Date:
Subject: Re: Clarification related to BDR