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 1kjvps-00089t-Mj for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Dec 2020 02:56:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjvpr-0002Vd-6d for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Dec 2020 02:56:11 +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 1kjvpq-0002Tb-VI for pgsql-hackers@lists.postgresql.org; Tue, 01 Dec 2020 02:56:10 +0000 Received: from [66.111.4.28] (helo=out4-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjvpk-0001OS-FM for pgsql-hackers@lists.postgresql.org; Tue, 01 Dec 2020 02:56:10 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1BF185C01CF; Mon, 30 Nov 2020 21:55:53 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 30 Nov 2020 21:55:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=7P4SQspmahvqRe06Rq1QOYKLKf2 UiHVoN2W1VWRapkM=; b=flxrAawbYuNmtgWus4DMvARf5c5Ecy1KWhQsn0h0gx6 CNOtukQ7Epy7VFzNW9exK+IvHvDaik5LI3m8zHeDpOdm2rgGIn/slV1MK4GT1Whs z1Ss85E8UfM3Mt+l1LKsjoUpDUzMhBf1tHBXKpkxVjLwBDn/VY8WJ7GcbIPBcBCt XD1Dr6pglFHm0CHiWjpYKD0gHXqn+bbbz13xj1YDiFkwZv0L9vCj5Zy6egOhx5fH MOs05h2W3Jf/f9WXzJaR5FzZkImEzX6OJhiJS+21VAYtQI5Zl0CMOL/MHHgOOBRv Oc7Yny1E4DtoCPAS+/3C4DLI+93rFWNSxSPULc8uxKg== 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=fm1; bh=7P4SQs pmahvqRe06Rq1QOYKLKf2UiHVoN2W1VWRapkM=; b=cJMSVxeqKXTMuqrAFMwWX8 I2qTrdKkGp//4VdQVoS3T4jaU/ksFs57wODPtx0R1bB2h617RM1JQygU3ZDhDAyo Sn0xys16VRgwt9AwVUOURFFfr2imSAgGrWlyKUADicUpgH6NWq+F0c7zG3IM0Cgh wcXLQC8ZT91BOtnW1NjV3JGX/xN3XqRu+MBPc763ObxNbWtuIgwvQhWsz3xgJI3D xgOY5LCmnowlkuQ3yNjjWo2qStng1u8eJW4OWHzC6s/mvUWMn11Pc5mud5AcH/ws 5W0mWDSH99zVzxwVnsrbuKqWoHxgn0Zady3S/s7+eXuJ598OghyFTXW0vNf1U6Uw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeiuddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 4E9AB328005E; Mon, 30 Nov 2020 21:55:51 -0500 (EST) Date: Tue, 1 Dec 2020 11:55:34 +0900 From: Michael Paquier To: Thomas Munro Cc: Pavel Borisov , PostgreSQL Hackers Subject: Re: BUG #16663: DROP INDEX did not free up disk space: idle connection hold file marked as deleted Message-ID: References: <16663-fe97ccf9932fc800@postgresql.org> <160624299337.7563.13562988821961887884.pgcf@coridan.postgresql.org> <160624435783.7564.2550264874132085886.pgcf@coridan.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0WV0HWMywBx2KoND" Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.28 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0WV0HWMywBx2KoND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Nov 30, 2020 at 06:59:40PM +1300, Thomas Munro wrote: > So I fixed that, by adding a return value to do_truncate() and > checking it. That's the version I plan to commit tomorrow, unless > there are further comments or objections. I've also attached a > version suitable for REL_11_STABLE and earlier branches (with a name > that cfbot should ignore), where things are slightly different. In > those branches, the register_forget_request() logic is elsewhere. Hmm. Sorry for arriving late at the party. But is that really something suitable for a backpatch? Sure, it is not optimal to not truncate all the segments when a transaction dropping a relation commits, but this was not completely broken either. -- Michael --0WV0HWMywBx2KoND Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl/FsKYACgkQnvQgOdby QH2DAA//QN771t7/K9OYKYWyQ5OKtmJfYAo0ZKuj0DhjviYddDUfv+oHserwpzlS MnltDpN/i1kmMgr0i8Vmw9wLDgbLg51Q+LeVUhHUISYf034Qyd+/Xw6Jku8DyBDF YB5WDud/38KSfC8PvaiFQ9sx19yJNxRrlmybwiEBlgl3NmYYVaOkg41G+Q6vy8Ds RF7kJlHogEE9QmxA+7XUQ6Aj0dfoy9RxSqYh0xoCoVU5saGPUg9ENponv5VipMlR juCJ6v+X9OSIZFcqVLMiyM8ZJWICsxLgIn6VqCBJ5q2Z5JC71R2uxgSZ2eOuaDh+ cOxnWmQCVkMOno4Ouv6VkxPcFuCJHrXNayK0j/Kk1YL9JJPgZkFOmIzKdrfaRYhj 62qZo0OszJvA8/SjyXTE/EvhHO0kcKBFAKbM1RSC4uQxWyMO4zxYxALBXlSUyVo3 V6V/VV5TKdWB0MGN1hz65JMPcCz/Ubvjtd7uu0vwv7u2zQU2zY5jE9D4DCd/O1wl x4ICZWDGyE+KSU3L+BkpXwyulvcsRlQC6fLOGcjZz1c3a0ZGDt+jFt0A/JCSx/Uv Zm/XtsYNZrBvuiT5Y6y8rwOgZIEJcaULr8+uA6lSI/RHw3M2kleIzItUa5WkZt+k zMVfQ7gEmmQD0migW+2iTsYYOrx1qinN2Cyv7wK8/addHcO0nYw= =gsVz -----END PGP SIGNATURE----- --0WV0HWMywBx2KoND--