Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkBSF-0006PH-FT for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 14:46:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkBSE-0001Mn-Px for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 14:46:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkBQZ-0007o2-BY for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 14:44:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkBQW-0002GI-Mn for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 14:44:42 +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 u8EEidNT028461; Wed, 14 Sep 2016 10:44:39 -0400 From: Tom Lane To: Rick Otten cc: Pietro Pugni , pgsql-performance@postgresql.org Subject: Re: Disk filled-up issue after a lot of inserts and drop schema In-reply-to: References: Comments: In-reply-to Rick Otten message dated "Wed, 14 Sep 2016 10:17:41 -0400" Date: Wed, 14 Sep 2016 10:44:39 -0400 Message-ID: <28460.1473864279@sss.pgh.pa.us> X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Rick Otten 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=26ce63ce76f91eac7570fcb893321ed0233d62ff 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