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 1nvqwe-00033R-LN for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 01:45:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nvqwc-0005te-VB for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 01:45:14 +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 1nvqwc-0005tV-Mn for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 01:45:14 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvqwa-0002k2-PE for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 01:45:14 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id E77DC3200094; Mon, 30 May 2022 21:45:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 30 May 2022 21:45:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1653961509; x=1654047909; bh=MpO4cFjHSU EXm/B9Daffiy+jKb+WzfCbEf5y4s37fZA=; b=JPzBzncrif6ikuYofZ/rMkwjhJ gNcqTtS++sjwQ8V4C2yMwmwuyvo5ncTmNrpDCLeOu4eBA2O6RceToSogj4vjPoIl LB6dSYS7FHUzwzVLXhq98qu+UZ1S5RzKQuj9PF+s20UjqLzeXmzWGfvK7sH5ft7K 27Vi1v2CVgHoTJVPAeN65HapNdYKFeHDo3OjINiVxlP4p5NlCt93LXAaGyM2eKph quXFeDA1v03slem3LqkV8ywJXH+aQZr45mjnMxrYL9r5PvS04JjLEnW441WeTu9J W21vqzDUvMhKoXGeBoZ3ien1/0j46CYu/36XEwqkzLixhKdaqZd/v0AgN1zQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653961509; x=1654047909; bh=MpO4cFjHSUEXm/B9Daffiy+jKb+W zfCbEf5y4s37fZA=; b=FIEAHdrVA46lyNWN1tqOITzrX94nw7OAu67Fph9NqsBt JDiFjQKthoQZZdSiz7PRrvQ5Oq3gTTIEIGUTszxEE9qIPrgopIFIKmsA+FLq21bN Y3R17wPAXiL+bLBYZ9T7W/qce2WwADuDuve+8SMW+iG2fiUaoDXqwOQkRpGmQX5d mZDwnKPd/JGT5KhPnTRnLgMtXagrEYfyiBLus7YP3zLPNjmZY5+269IBzTmq5LFR OTt9zeWFA56r+bQBipKjb9NIpLakF1B/Lry0kiOIXQRvUhipjBJBF3eCtPUjDzzi /s4HB1U/9VxtbMkjVfNskNtSXvZwf54BuYsV+nMRXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeejgdehtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 30 May 2022 21:45:06 -0400 (EDT) Date: Tue, 31 May 2022 10:45:04 +0900 From: Michael Paquier To: Andres Freund Cc: Andrey Borodin , Alvaro Herrera , Robert Haas , Peter Geoghegan , =?utf-8?B?0J/QtdGC0YrRgCDQodC70LDQstC+0LI=?= , PostgreSQL mailing lists Subject: Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY Message-ID: References: <202205251643.2py5jjpaw7wy@alvherre.pgsql> <20220527231332.jwvrx6b3ytzt5snv@alap3.anarazel.de> <20220528070219.kbj527dx2sxmuomi@alap3.anarazel.de> <4B1BA5BF-37EC-4EE7-AB3B-4C4D95A8059A@yandex-team.ru> <20220528193413.cvhno3ky4tikuiqo@alap3.anarazel.de> <20220530191004.oc7kugjyn4isghti@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GC+TIsxjJoa12qRE" Content-Disposition: inline In-Reply-To: <20220530191004.oc7kugjyn4isghti@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --GC+TIsxjJoa12qRE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 30, 2022 at 12:10:04PM -0700, Andres Freund wrote: > I think it's ok if we have a heuristic test for this kind of thing. It > sometimes can even be good, because it means we'll get different schedulings > over time, hitting "unknown" bugs. Yeah, the tricky part is how to parametize that to be cheap, still useful. Having a larger number of attributes makes the particular problem of this thread easier to hit because it enlarges the validation window in the concurrent build, and generating such dummy data with a simple schema should be quick enough, but I would not accept in the tree a test that takes ~5s to run without a rather good hit rate. For this particular issue, I would say that something able to fail up to 20%~25% of the time for a short run-time would be quite decent, actually, even if that sounds low in a single run because the odds of detecting one failure increase a "lot" after a few repeated runs. On my own laptop, the original test of the reporter takes up to 3~4s to reproduce the issue, for example, all the time, so that's good :) -- Michael --GC+TIsxjJoa12qRE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmKVcyAACgkQnvQgOdby QH0LZQ/+JzvbJNlXhkBroWP3u21QaZPDfQoulycfck8H88bqI48KMdVKv/ADlSWh L2XbD9MBNdPC4LlyNs9icHSRcegiygvODu/A/+auZqPZn831qcVFbj5dDOitpXjc BqHt4nJeV19XQBcbu5Fd4HRU0gejFGdCXajZx4rGNjUaHgDYyClgpO1b03UMjqU9 eCPe8ic29Ah2u9VM+Gk96I07esTZOg2QZ4C4HOsj7sKlhFI8vqWWVGxThlwC+Mb0 itTbNVsST2/h+ff7sUYe2NHZoaKsl6siZnZyABOkw3RhBz7FYR+eWc1gZHsT/IRG wxc+/zPB6COYAx9gHNz83/ewIm7nN6H9Lg0A2J1jp89ucp7uc13fG6gNOAtjI+3o B68odcppZq6jznSWne4zklkgOUSI+ehfLVZzTaX7Gn7G2Lh97voioTrcA/ywO4C2 1lNoO23lZaa6foSgV17r7DfCX1DuT/zKatPBJjPDUtSlOKlUazFOLqMtMD6UMVfP bMTdWclLc9V4l5pMRSp2yaMtf4d+pu+tvN+i3urr9UjlydAjZsDVPVgK2fbtXmCX Spi/kFMKYld13C2iv9t3fcoFQn2mKbOERAXzljdompaeDN69xsUcohjUQI5VU+h5 E+DXNXcw2iisznhEMfBmRSFt/EUcNA9R+ZNKR9TtmMivZ7q18O8= =VBd7 -----END PGP SIGNATURE----- --GC+TIsxjJoa12qRE--