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 1gAp8k-00026K-E0 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Oct 2018 04:33:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAp8g-0000yk-Py for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Oct 2018 04:33: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 1gAp8g-0000yd-KO for pgsql-bugs@lists.postgresql.org; Fri, 12 Oct 2018 04:33: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 1gAp8a-0001lv-ID for pgsql-bugs@lists.postgresql.org; Fri, 12 Oct 2018 04:33:26 +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 w9C4XECM006514; Fri, 12 Oct 2018 00:33:14 -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: <20181012040958.7rvh5bp2pjwjzbof@alap3.anarazel.de> References: <15427-d5b9573b9e5bdf29@postgresql.org> <20181012033714.2ooabwtwk2qwxk2q@alap3.anarazel.de> <5299.1539316636@sss.pgh.pa.us> <20181012040958.7rvh5bp2pjwjzbof@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 11 Oct 2018 21:09:58 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6512.1539318794.1@sss.pgh.pa.us> Date: Fri, 12 Oct 2018 00:33:14 -0400 Message-ID: <6513.1539318794@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-10-11 23:57:16 -0400, Tom Lane wrote: >> Uh, what's that got to do with it? > If you look at the bugreport: As soon as the op, on my suggestion, > triggered sinval processing (by issuing a SELECT 1;) the space was > freed. So clearly the open FDs were part of the problem. TBH, I think the space-freeup was more likely driven off a background checkpoint completion, which is where the truncation happens. regards, tom lane