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 1lRnhD-00077F-Bo for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Apr 2021 03:08:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRnhC-0004rs-BJ for pgsql-hackers@arkaria.postgresql.org; Thu, 01 Apr 2021 03:08:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRnhC-0004rl-2n for pgsql-hackers@lists.postgresql.org; Thu, 01 Apr 2021 03:08:34 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRnh9-0005bG-Fa for pgsql-hackers@lists.postgresql.org; Thu, 01 Apr 2021 03:08:33 +0000 Received: from ars-thinkpad (nat03-43-2.netorn.net [188.35.130.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id C6C1D21C68A6; Thu, 1 Apr 2021 06:08:28 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1617246508; bh=Y6mlIgalc6osrLrElEsGPLeoVL2U0lbPL6hBkiekKpQ=; h=References:From:To:Cc:Subject:In-reply-to:Date; b=pnLkJdy8n4uuHdHwLuvf/hbY+Kg5F5KR1pw0Ajb0m/B8kFPcGs5KdduSVrVm9naif qKCo8LPnpZi/tk0BKmQ9WzcKY9Ive1zse8grgVu7xdxrK/gndNElSWDXJknvuHCZh9 XUzis278JVrw76DaKDO6xu6KURmlumJpS8qNuH0A= References: <87tuotr2hh.fsf@ars-thinkpad> <78aad736-c653-92fd-45ac-4482729459c6@postgrespro.ru> User-agent: mu4e 1.2.0; emacs 26.0.50 From: Arseny Sher To: Masahiko Sawada Cc: Michael Paquier , PostgreSQL Hackers Subject: Re: Flaky vacuum truncate test in reloptions.sql In-reply-to: Date: Thu, 01 Apr 2021 06:08:28 +0300 Message-ID: <87sg4ar9ar.fsf@ars-thinkpad> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Masahiko Sawada writes: >> I don't think this matters much, as it tests the contrary and the >> probability of >> successful test passing (in case of theoretical bug making vacuum to >> truncate >> non-empty relation) becomes stunningly small. But adding it wouldn't hurt >> either. > > I was concerned a bit that without FREEZE in the first VACUUM we could > not test it properly because the table could not be truncated because > either vacuum_truncate is off FREEZE won't help us there. > or the page is skipped. You mean at the same time there is a potential bug in vacuum which would force the truncation of non-empy relation if the page wasn't locked? That would mean the chance of test getting passed even single time is close to 0, as currently the chance of its failure is close to 1. -- cheers, arseny