pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: ap@zip.com.au
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15427: DROP INDEX did not free up disk space
Date: Thu, 11 Oct 2018 23:57:16 -0400
Message-ID: <5299.1539316636@sss.pgh.pa.us> (raw)
In-Reply-To: <20181012033714.2ooabwtwk2qwxk2q@alap3.anarazel.de>
References: <15427-d5b9573b9e5bdf29@postgresql.org>
	<20181012033714.2ooabwtwk2qwxk2q@alap3.anarazel.de>

Andres Freund <andres@anarazel.de> 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




view thread (6+ messages)  latest in thread

Message-ID: <5299.1539316636@sss.pgh.pa.us>
Permalink:  ../5299.1539316636@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5299.1539316636@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, ap@zip.com.au
  Subject: Re: BUG #15427: DROP INDEX did not free up disk space
  In-Reply-To: <5299.1539316636@sss.pgh.pa.us>
  References: <15427-d5b9573b9e5bdf29@postgresql.org> <20181012033714.2ooabwtwk2qwxk2q@alap3.anarazel.de> <5299.1539316636@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox