Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ8rm-0004CV-8I for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 08:05:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZ8rl-0007BU-2r for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 08:05:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ8rk-0007BM-6L for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 08:05:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZ8rg-00043l-Q3 for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 08:05:15 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8FEAB5C01E7; Thu, 14 May 2020 04:05:10 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 14 May 2020 04:05:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=Pv/o1Cy+7JY1uGY6l9t+S9/2HJ1 h/5hw1fmn2X/+RAs=; b=UimXp4v/TCnLeHFAq915GQg8sdc4YLuRy0UCkp+aYbV g+MVBQArQHAnNJq4c41ehOM2tcoXWZ+IV8zpdSmEfxx2O1xpfT7FV3nLyphIc1Ww zsOQ/Z1KLAtJxweq+nbohGvRs77aMK+s7jObK7+JuFJTL0z1jI6OtRqOf/1Oa2oC cxWd70DonmXQIk6OCFCrkN28yiOa3ecxIdxuj2U2H9KU1BqgoMz6BAaHNEXj0IAD 4e+UgIY04KLKVAreWQ8ZkXQWPcOzevNn4wm3BVQ+FH3ID/xPy9rjND/qbS7R5skh VRrVvL4aPlmCsNj1SFggu65OLxJ+iqeMacKbwjOAKGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Pv/o1C y+7JY1uGY6l9t+S9/2HJ1h/5hw1fmn2X/+RAs=; b=kKbRax43ui0ByVb27hNULH HRdUEPF+v/GCdLkRyMYZKidWA6sGidOqVXPgtUVDoxQWqobqN0m7VHeLIWEgyoDD kG5BdLiCKJBRaXs9e6V8VELtbUNzYHDAjTZvLjvIgR7yv8AWFfdfCyost1db3loQ 8uIvm+JCaJ6rbUFIMeN7xlM1DAaA3Vxh1xJJ2A6RfYjJOm6ywfTSjrBkJOrfPwnQ TdswsIzWCrhBoCZFyHjhkFIN7u8pSoXRq3AiuNN2Ut97mA60tv7imWQUnAj1Gy1p 0ciaZt7F5EK6S+gLbtyfNSL/jr6jfgwXSxkXiRcZLQKgIOKY+t2ENIr0OpoBaRDA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleehgdduvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhu ihgvrhcuoehmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrh hnpedvgeduuefhtdeuleettdevjeehheeiveeuieegleetgeeljeelieeuieehgeevhfen ucfkphepudduuddruddtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 64C2B328005D; Thu, 14 May 2020 04:04:59 -0400 (EDT) Date: Thu, 14 May 2020 17:04:47 +0900 From: Michael Paquier To: Andy Fan Cc: pgsql-general@lists.postgresql.org Subject: Re: Check what has been done for a uncommitted prepared transaction Message-ID: <20200514080447.GE166343@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gneEPciiIl/aKvOT" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --gneEPciiIl/aKvOT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > demo=3D*# prepare transaction 's'; > PREPARE TRANSACTION > demo=3D# 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 --gneEPciiIl/aKvOT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl68+58ACgkQnvQgOdby QH3a8w/7Bz3YBPBruG59Z69KQfiubk2TNgfxhSztXOHF2cS7RDv0JA2+6NVexdRA uPJ9JhAUVrKzCYQcWMMRkVsF3wu1fhZbf8LF9XB3BDbBiDd+lmHOtNBdikrx7qiU +pamKwJXcdvlGQeianwOvAMzUkKOi6gwmEGdCHQS0fPRtbQN5IFUTskKkgetCwC8 NL9WA7Oi8ETbCMEVtqOS7+GiPpTQ/rH/Jvp4HKmjgQzsDnaxaHSVONY29CaaOXLD DsAw2ee76AZDuAop304UBN+V5hMkSmuZi7p8U6dM3elUDS9v0K9+7MZb8k9EANs5 jAW00F3pXjc/7IHz8ggQu67SUEk32kLNPtvXT7lR9LSuKsgH0FFleYhWBJvj2aDS 3aaVfXVBOz3QOQA/dh3e+70Z9ozm171Cd6WbKxoOtwvwP98SYfffKtq5ya+iewi8 PAnttso3lVzfP1Zvo+od7GWaDLD4SWsiNpHo44mhFxcCxevSqoYc5QVIkgGqLwrD vQbhtw8o9L44/BMgmKD93cyBT/oTQgYAh8rcl1dLwqqNztP9DdTve7mbmxng2inW MXuG8HMLEbQV3D47Sx7Oikav3vD7ErRv0deJYBbCHWa6ygdlF/2nEYsSQQWVJ9Vk Cix4OtBjptTQ38qWgnAq5KV+oC1/4jJ1cFrpV4LBjgAUHxZCbSA= =Bdh5 -----END PGP SIGNATURE----- --gneEPciiIl/aKvOT--