From: Michael Paquier <michael@paquier.xyz>
To: Andy Fan <zhihui.fan1213@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Check what has been done for a uncommitted prepared transaction
Date: Thu, 14 May 2020 17:04:47 +0900
Message-ID: <20200514080447.GE166343@paquier.xyz> (raw)
In-Reply-To: <CAKU4AWpyT1NMKjuX0myda8Q2SukrA7JROtjVcv9tNxqAptuwKQ@mail.gmail.com>
References: <CAKU4AWpyT1NMKjuX0myda8Q2SukrA7JROtjVcv9tNxqAptuwKQ@mail.gmail.com>
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
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, zhihui.fan1213@gmail.com
Subject: Re: Check what has been done for a uncommitted prepared transaction
In-Reply-To: <20200514080447.GE166343@paquier.xyz>
References: <CAKU4AWpyT1NMKjuX0myda8Q2SukrA7JROtjVcv9tNxqAptuwKQ@mail.gmail.com> <20200514080447.GE166343@paquier.xyz>
* 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