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 1oayNU-0004Qo-7v for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Sep 2022 11:58:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oayNT-00040q-4T for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Sep 2022 11:58:55 +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 1oayNS-00040g-3U for pgsql-hackers@lists.postgresql.org; Wed, 21 Sep 2022 11:58:54 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oayNO-0004As-Aq for pgsql-hackers@lists.postgresql.org; Wed, 21 Sep 2022 11:58:53 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 2A291320099A; Wed, 21 Sep 2022 07:58:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 21 Sep 2022 07:58:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1663761525; x=1663847925; bh=r Sk7VOlZhvpYFDMMkB4j1kohj2/rtZ/0C7O9ebjznAs=; b=ktXKxbljgGh6s0aJf zCwItL9q9UBJvU9i8lO+CBFbABjPXVWZEqic0gFLAteo1gFOvWf76I7/JbWXNQ+F NFvjz4W2JyezO/GeU2hyjS3vHKxFJJBAl+MJwc5tuA2GyUAHlB34NjX7Q2/Du8GA JlkcssVqTUqWwjDjVK/1L+DcIV6HhUmA9fdHPWEyhnA64Za2jvg9vdyBHPTNf08k DExkIopsLztWvrGj1lRZGDuN/kWibGnO8eQL7R95o/EQyX9T017eSlZYOiWiYf9C /UZpilmR1gY+F3Pl2s1VlDXXvCYGZ+2gZYLGU3xYJFD9bDMtgnXLzp+YMuEmfbPo twYkQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefuddggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Sep 2022 07:58:44 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 11FDB38F; Wed, 21 Sep 2022 13:58:37 +0200 (CEST) Date: Wed, 21 Sep 2022 13:58:37 +0200 From: Alvaro Herrera To: a.kozhemyakin@postgrespro.ru Cc: Amul Sul , PostgreSQL Hackers , thomas.munro@gmail.com, tgl@sss.pgh.pa.us, noah@leadboat.com Subject: Re: tweak to a few index tests to hits ambuildempty() routine. Message-ID: <20220921115837.ob243hlokrlrxvfo@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6c9ec3889fb13b7ffcd9e1dc3e1f1e08@postgrespro.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Sep-21, a.kozhemyakin@postgrespro.ru wrote: > After analyzing this, I found out why we don't reach that Assert but we have > coverage shown - firstly, it reached via another test, vacuum; secondly, it > depends on the gcc optimization flag. We reach that Assert only when using > -O0. > If we build with -O2 or -Og that function is not reached (due to different > results of the heap_prune_satisfies_vacuum() check inside > heap_page_prune()). > But as the make checks mostly (including the buildfarm testing) performed > with -O2/-Og, it looks like that after 4fb5c794e5 we have lost the coverage > provided by the 4c51a2d1e4. Hmm, so if we merely revert the change to gin.sql then we still won't get the coverage back? I was thinking that a simple change would be to revert the change from temp to unlogged for that table, and create another unlogged table; but maybe that's not enough. Do we need a better test for GIN vacuuming that works regardless of the optimization level? -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Investigación es lo que hago cuando no sé lo que estoy haciendo" (Wernher von Braun)