Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hq74w-0003xX-76 for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jul 2019 02:32:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hq74u-0006dz-VW for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jul 2019 02:32:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hq74u-0006dr-Kr for pgsql-bugs@lists.postgresql.org; Wed, 24 Jul 2019 02:32:28 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hq74n-0002Pz-TB for pgsql-bugs@lists.postgresql.org; Wed, 24 Jul 2019 02:32:27 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 062AE21E6A; Tue, 23 Jul 2019 22:32:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 23 Jul 2019 22:32:21 -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=fm2; bh=itchS21/5BXBw2D+DlgVOmd8dkA z7qZMeH4PYZxRukg=; b=LO++JuyR7r+rSI18wyu5qyuC80kgZHSG+3PZ5mfleVX iLGtYav0mVJ7O/fEuiLYJVfNZAgox2O2GWoGXSUzZL7hPd4mJtf+2ZYIvQztmZXf zd6GDMxS9XkprPV9ppyUnjctqRhzQqgG97YBTqO5mQAn7o6DBjG6md/OGuzUd/9n fN9Sc1OFcimcjq5ZWhqOzAA1UycJvoBkQ/WnrCm6ltEuTdYJFb3NW+IBu/MBEzyQ 0qcXcgsciLwL1i6xyhZzPBT4xay1PzuHMHyFjQRXXRyuk+7Zc9VyaAb5BrwkfE7H zZe3/DpnNumR/B1sVmOT2pezRROCOmftac9Eyn7IkCA== 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=fm3; bh=itchS2 1/5BXBw2D+DlgVOmd8dkAz7qZMeH4PYZxRukg=; b=Miwl1Yre1+QoSooaQl4Gew cfaMQzTBGe88U+Rt8N1b/R48yJJRnKIqcc9UvmNc/zxLfGlSmar94xXUshzWWgBk qD+Kd7kJtlEXUsurvGY7hF4eXZL4WIuIbXs6aPLvYZobi8QRNAwFnctTGxELQ/Td nXlVKT2MwgraGq1u6uqxIN/aYeiaQwUyWvR9vDAlhNGYkG2G7vpQ6k9OnOH8HuL2 XRfcZOckLwIp9tIWjUfjC3oWwR4cWrRRcV4EHoE0oNZmWjowuMdtPX00DaUQAqxX UjwH1H1KOw/7OUuiSwrChM8H0WmD+D8kKcNMj5Juudip7BYYrsNmGEukqDoJ8HQQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrjeelgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdefhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfk phepudduuddruddtvddrudektddrudekheenucfrrghrrghmpehmrghilhhfrhhomhepmh hitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt 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 69895380087; Tue, 23 Jul 2019 22:32:19 -0400 (EDT) Date: Wed, 24 Jul 2019 11:32:16 +0900 From: Michael Paquier To: Manuel Rigger Cc: PostgreSQL mailing lists Subject: Re: ANALYZE on parent table results in an error "tuple already updated by self" Message-ID: <20190724023216.GD14257@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="T7mxYSe680VjQnyC" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --T7mxYSe680VjQnyC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Manuel, On Wed, Jul 24, 2019 at 03:19:19AM +0200, Manuel Rigger wrote: > In the example below, ANALYZE unexpectedly results in an error. >=20 > CREATE TABLE t0(c0 boolean , c1 integer); > CREATE TABLE t1(c0 boolean, c1 integer) INHERITS(t0); > INSERT INTO t0(c1) VALUES (0); > CREATE STATISTICS s0 ON c0, c1 FROM t0; > ANALYZE t0; -- unexpected: ERROR: tuple already updated by self >=20 > I found this on the latest trunk version. This issue was introduced by v11 and has been already reported here: https://www.postgresql.org/message-id/20190618231233.GA27470@telsasoft.com -- Michael --T7mxYSe680VjQnyC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl03wzAACgkQnvQgOdby QH1VAw/9Hc2FLivo9iCwFRAc7nzeI33LJwg3+YQ6M2zELFaq/jwLy2b6hctIHRiV 6q0rQZOBqt7MLYH4ANglzpR3ig1/zkmCQoDQp+lnCdH3g/Y84O/seO1MZfCjoIca fWtLoFrBrp+xG0Pt6nPBEIcxeZywzwf0DSa5wz0D5JA9+ME05yo59dWCC7kDnx/2 z2sNQUFdoytkImcIHkX8iqEc1P48jm00o0ZfZvXXjKDDcVkfLRyAbaARchw0Ughr K5C5xUVTV4xIw/tUNDcbmtxJ1alkhWyi6G+0u+W5keD87Wnk2EBxdfoxc6t5SR4d sDS1H33w4xMtDJ22ks2Q5cDLPw85qQ7uqzjEGn7cqbnGaOBSV9E8gOGV2Zdp93j4 EaEjKqjyUAyMr84dCoVoOaqK7My9qZWcainFBqvAyWouSwdxqOu2Iawkdgm22iiQ +OyQq46soNJKaXq5fb/q+s9lZcZKiOuC+UkiMLIKSrV3nTJLuwwgU0Qb5vg57Lfu 0LhywFQje1IfrLOSnMlPEsfljyZcq3wK5jkacGB43iT1P2UbdAcvqga4f82QZfcv 3CHd5TOgdQDMY+ce11xGu6v1777NxetYAc2r6jcNJM4xCCg9Ix/aUUfQChGywCZn ie5gSNp4XjyoP9EQ3DIsQK6sYAz2c3ghRVPMM496qt1mIneLwlE= =zF+D -----END PGP SIGNATURE----- --T7mxYSe680VjQnyC--