Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tOT9O-006VGi-FP for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Dec 2024 02:54:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tOT9N-0044x3-PK for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Dec 2024 02:54:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tOT9N-0044wp-H5 for pgsql-bugs@lists.postgresql.org; Fri, 20 Dec 2024 02:54:01 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tOT9K-000gRI-8H for pgsql-bugs@lists.postgresql.org; Fri, 20 Dec 2024 02:54:00 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.stl.internal (Postfix) with ESMTP id 1DF0825401A5; Thu, 19 Dec 2024 21:53:56 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 19 Dec 2024 21:53:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1734663235; x=1734749635; bh=lwOFqW0fkj MvkQaT4HXpl9+UGrPJazZE1A++RkZYqIk=; b=fBD/zxz/drWX8s4YAcMWF2VXrF 3XeedkESum7Tj0HILcxicy/xHir9lPSXYFhTjSBt2MR25JGDtDLnPdWt/GqN+cPa t7mAgzd1nXGhL9derxC/j5YvFT2uwVoNqSaYC/UDrQFgsQg9d6s7+rGtfYqeFeI8 2ewdhuPRl/0WsfIoQ3V2nnV3X0F0okJIWBBSuPIK8DyxKgmqZAQdrEsLlVAX2lBA ivKYFvvlXPibokhH+tgb1Oyi099IIbq5MMyTRCuy3hC0li2jZAeksWfI/PEwZzwS b5vSvETV/GwvV0AqFKVgmVRLSZeg+3j5wqFlIrE2epUP9V6uO5+G6k97VgHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1734663235; x=1734749635; bh=lwOFqW0fkjMvkQaT4HXpl9+UGrPJazZE1A+ +RkZYqIk=; b=dpsNcONTCSD2C8T7kfdpt8xO4j7KQLPTR3QCxrPleHnby6+sOti 8ZXN9SeARj5oBG1Z2+ivKGTgKhG5N+N8CxtLz59OQ2zeHQQVO4XbxaIlmHovd2lj iiRv2C8B0blY6AC3KPJS/X/H2gdPcuaMH9c3hSd6Fo65YTwuNu/vYbUSFETUZK0l qSDT/Uc37oH7DCVHIsRT/iKP2RiJPtcYL0FYQIoMj6IEpN/xC65bcuqiA7WsL2eX 1BY3Dy6vjGDuhEsDwX5XIxpMZw2fS5VJYG08wUXv5/BepQ2cL2OVV1EZWMkQLGV3 1ksu7UjScsoctCBq9vcjDH8dwRTOCvFuZ5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtuddgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteel ieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepkedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdprhgtphht thhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtghomhdprhgtphhtthhopehhlh hinhhnrghkrgesihhkihdrfhhipdhrtghpthhtohepvgigtghluhhsihhonhesghhmrghi lhdrtghomhdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhspdhrtghpth htoheplhgruhhrvghniidrrghlsggvsegthigsvghrthgvtgdrrghtpdhrtghpthhtohep rhhoohhttggruhhsvgdttddtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlh dqsghughhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Dec 2024 21:53:53 -0500 (EST) Date: Fri, 20 Dec 2024 11:53:43 +0900 From: Michael Paquier To: Robert Haas Cc: Thomas Munro , Heikki Linnakangas , Alexander Lakhin , Tom Lane , Laurenz Albe , rootcause000@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18146: Rows reappearing in Tables after Auto-Vacuum Failure in PostgreSQL on Windows Message-ID: References: <8e499d50-09ac-479a-b5b2-8a8bca83d057@iki.fi> <00477c52-3a35-4621-b80b-58a5a48b113f@iki.fi> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u3S9DklGmemkCZWK" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --u3S9DklGmemkCZWK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 19, 2024 at 10:44:05AM -0500, Robert Haas wrote: > I think mostly my thought was that if we could remove smgrtruncate() > entirely in favor of smgrtruncatefrom(), or just keep it called > smgrtruncate() but add a mandatory additional argument, that would be > less error-prone than having two versions between which future hackers > must pick. Hmm. Indeed. As a HEAD change, keeping only a smgrtruncate() is tempting as it creates a parallel with md.c. I am not completely sure how to make all that leaner with the smgrnblocks() calls that save the old number of blocks for each fork. But perhaps Thomas has a fancy idea if it comes down to that, and it could always be done later. -- Michael --u3S9DklGmemkCZWK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmdk3DcACgkQnvQgOdby QH3QIhAAp8IXblNVoAYxHdtOhemK898SPb1hg3GthTriTxWszeia48jqOYLgSObe WnotL2GSGbB8RAFi76wslMXMlF+8zITvWcPM9T7Z9Z8k/fdsXtToKyf7qq8JiVak LdPBtZj5wXoKb3Cnl5XXQ+WKqwJPHDn/0T9BmdnLv5eu42Ahu6Sraf+s20nvxAN6 wX1UcXbLMNsZwkeWIoFTvj+pxsFPypXbwXw7wd51QfsmPVY5yQ3WHJQlx0pmHFib 41Jez/vT41UlRMAaH7FKCt695IWDvUw477HZXNRM6RfLjdOTM6n+nK+zRAvSgtB5 II1sD82oP6JcROgV7qHwr5dZcVEycwGBS2onHqa62vTsys0fSnuRlKKgeRxOrrb3 CCH81kgwSWVWiAKKjRYsupCFtelg4NHp04DwNtg2o4hoj9QIqj6tvB5J+UHl+5TG TvR5GH2wPcLGypaC4I3d1OmaUd3NSr5LCXbEU03GUGjEAWL9fM41HRsFqMnRaCQq e6jGjOEfNAB+BeNC7yGlefaEqQs/NXrFhrfAMrc/3hehGFaB0t6Y18D7Fz088eHy cCwH7f/T1S39TGtSgqdJUF8dIciUsBIlAX91zp2pPQeEtJ0Q160WKC6u14ZqGEZo siYlIqJxUve4hoEaLmAG8CywPihuVLjNxnDCtdtvmuSDVRYSgSc= =0Q29 -----END PGP SIGNATURE----- --u3S9DklGmemkCZWK--