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 1la5Bz-0006Bo-Ja for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Apr 2021 23:26: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 1la5By-0003hI-Fo for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Apr 2021 23:26:34 +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 1la5Bw-0003hB-Nw for pgsql-hackers@lists.postgresql.org; Fri, 23 Apr 2021 23:26:34 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1la5Bo-0002NG-RX for pgsql-hackers@postgresql.org; Fri, 23 Apr 2021 23:26:32 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id E78F12F53; Fri, 23 Apr 2021 19:26:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 23 Apr 2021 19:26:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=OTSkuE7yQOPbjl9mqX+XZuACi3q MMcGbPCw7/S4pCeM=; b=jychsTwLzetFuaukNewS/BJ8YskHQRr7N+zcGFoDrP1 OanwXRg3Fece8M4HE84S1Zb6145Txuq+UnowPRCp5Rx+AWfwPXwEJQ5OSGPxEgaO x1Kb3kEU9CiPz5woRUqvZIOmkK5nxNHCeguWVCFCMyE+eFvrpMTXmMFCQgocxomE WH1NcENB1k5+3ICTWvNOabcVGEuUIRW/FaNLx0alpF51VGYCI5IVjNv2rEAg2Eyq yKcNYGBM+JEtCBdsx1zsha+UC9hPZWT1RXWnLbpVYWPjvNgsEgfdSwNZHCPAPTXv lOeb9m9Vc20bo5Hkcl/cHYZhtbD6/YS/1c2uyLYe9UQ== 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=OTSkuE 7yQOPbjl9mqX+XZuACi3qMMcGbPCw7/S4pCeM=; b=t8dpGNsFKSllJGOqn81+CE +1zmmAtY7zfkfuxgwozRLshYfiQOg1WlPau5rM5kGvANIJgDpCjFDJOEXJQT/CGg FXx6veWlm4I4g973YL1zDrh5XN1jXxc/P0Y1TO5lYTTFlovCu57IR3CdcCDSPn0r AROYsnNEvHiKpxgkYKGV2M1sZ4hdP8Vou0IxXooD1PP0FSm1xg3BKQOvD/l34q8u 1H8TIo/9D9M+7Es3/C7gfSkJwptzSdd1kiSSp8hodDyf8Q4tdOV5GPMk9PwQaPA8 V4SaI/a2zirdAV/gKGkrx3HjZ52uYl7HFsyFPFVrcfdpUnkqCV+rYW3UoRgR1Lrg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddufedgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedukefhkeelueegveetheelffffjeegleeuudelfeefuedtleffueejfffh ueffudenucfkphepuddtjedrudegvddrfeefrddutdefnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdr uggv X-ME-Proxy: Received: from intern.anarazel.de (107-142-33-103.lightspeed.sntcca.sbcglobal.net [107.142.33.103]) by mail.messagingengine.com (Postfix) with ESMTPA id 80EAE24005C; Fri, 23 Apr 2021 19:26:18 -0400 (EDT) Date: Fri, 23 Apr 2021 16:26:17 -0700 From: Andres Freund To: Justin Pryzby Cc: pgsql-hackers@postgresql.org, Peter Geoghegan Subject: Re: Testing autovacuum wraparound (including failsafe) Message-ID: <20210423232617.acx6gxxhhgs3i2mk@alap3.anarazel.de> References: <20210423204306.5osfpkt2ggaedyvy@alap3.anarazel.de> <20210423230812.GN7256@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210423230812.GN7256@telsasoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2021-04-23 18:08:12 -0500, Justin Pryzby wrote: > On Fri, Apr 23, 2021 at 01:43:06PM -0700, Andres Freund wrote: > > 2) FAILSAFE_MIN_PAGES is 4GB - which seems to make it infeasible to test the > > failsafe mode, we can't really create 4GB relations on the BF. While > > writing the tests I've lowered this to 4MB... > > > For 2), I don't really have a better idea than making that configurable > > somehow? > > Does it work to shut down the cluster and create the .0,.1,.2,.3 segments of a > new, empty relation with zero blocks using something like truncate -s 1G ? I'd like this to be portable to at least windows - I don't know how well that deals with sparse files. But the bigger issue is that that IIRC will trigger vacuum to try to initialize all those pages, which will then force all that space to be allocated anyway... Greetings, Andres Freund