Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAoZs-00089G-VI for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Oct 2018 03:57:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAoZq-0005Hq-5C for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Oct 2018 03:57:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAoZp-0005Hj-VJ for pgsql-bugs@lists.postgresql.org; Fri, 12 Oct 2018 03:57:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAoZn-0000zF-EH for pgsql-bugs@lists.postgresql.org; Fri, 12 Oct 2018 03:57:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9C3vGah005300; Thu, 11 Oct 2018 23:57:16 -0400 From: Tom Lane To: Andres Freund cc: ap@zip.com.au, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15427: DROP INDEX did not free up disk space In-reply-to: <20181012033714.2ooabwtwk2qwxk2q@alap3.anarazel.de> References: <15427-d5b9573b9e5bdf29@postgresql.org> <20181012033714.2ooabwtwk2qwxk2q@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 11 Oct 2018 20:37:14 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5298.1539316636.1@sss.pgh.pa.us> Date: Thu, 11 Oct 2018 23:57:16 -0400 Message-ID: <5299.1539316636@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-10-12 03:27:28 +0000, PG Bug reporting form wrote: >> Performed a DROP INDEX to free up disk space but, whilst the command >> succeeded the disk space was not freed up. > The problem here is that even though we send a invalidation message to > all backends, there's nothing to force backends to process invalidation > messages in time if they're idle. Uh, what's that got to do with it? My recollection (though I've not looked at the code) is that we truncate the file to ensure disk space is freed, whether or not all backends have closed their FDs for the file. This is quite independent of the sinval mechanism. I'm suspicious that this report reflects some weird behavior of a non-mainline filesystem ... regards, tom lane