pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rick Otten <rottenwindfish@gmail.com>
Cc: Pietro Pugni <pietro.pugni@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Disk filled-up issue after a lot of inserts and drop schema
Date: Wed, 14 Sep 2016 10:44:39 -0400
Message-ID: <28460.1473864279@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMAYy4K6nwkqqdRcWR4cNeYvCXAH7h4WAo6vq1AkX3+MYOezsw@mail.gmail.com>
References: <AEA46136-0A29-4F3C-8966-90178EE44B4B@gmail.com>
	<CAMAYy4K6nwkqqdRcWR4cNeYvCXAH7h4WAo6vq1AkX3+MYOezsw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Rick Otten <rottenwindfish@gmail.com> writes:
> I don't know why something still has an open file descriptor on something
> you believe has been removed, but at least that explains why you are
> experiencing the discrepancy between "du" and the real available space on
> the disk.

Yeah, the reported behavior clearly indicates that some PG process is
holding open files that should have been dropped (and were unlinked).
That's a bug, but there's not enough info here to find and fix it.

If we're really lucky, this is the same bug that Andres found and fixed
last week:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=26ce63ce76f91eac7570fcb893321ed02...

but that guess is probably too optimistic, especially if it's a background
process (such as the checkpointer process) that is holding the open files.

If you can reproduce this, which I'm guessing you can, please use
"lsof" or similar tool to see which Postgres process is holding open
references to lots of no-longer-there files.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (6+ messages)  latest in thread

Message-ID: <28460.1473864279@sss.pgh.pa.us>
Permalink:  ../28460.1473864279@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28460.1473864279@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rottenwindfish@gmail.com, pietro.pugni@gmail.com
  Subject: Re: Disk filled-up issue after a lot of inserts and drop schema
  In-Reply-To: <28460.1473864279@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