Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkEPe-00075q-6X for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 17:55:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkEPd-0004Dv-8A for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 17:55:57 +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.84_2) (envelope-from ) id 1bkEPc-0004Dp-Sc for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 17:55:56 +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.84_2) (envelope-from ) id 1bkEPa-000559-7G for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 17:55:56 +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 u8EHtp4g016010; Wed, 14 Sep 2016 13:55:51 -0400 From: Tom Lane To: Pietro Pugni cc: Rick Otten , pgsql-performance@postgresql.org Subject: Re: Disk filled-up issue after a lot of inserts and drop schema In-reply-to: References: <28460.1473864279@sss.pgh.pa.us> Comments: In-reply-to Pietro Pugni message dated "Wed, 14 Sep 2016 19:45:34 +0200" Date: Wed, 14 Sep 2016 13:55:51 -0400 Message-ID: <16009.1473875751@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 Pietro Pugni writes: > I’ve jsut discovered the issue.. I set "logging_collector=off” in the previous email but didn’t comment the other log* parameters, so Postgres was logging every single INSERT! This was caused the disk to fill up. Ah. > The strange issue is that the log file didn’t exists when the disk filled up. I personally looked for it but it wasn’t where it should have been ( /var/log/postgesql/ ), so I can’t exactly confirm that the issue was the log file getting bigger and bigger. Seems like the log file must have gotten unlinked while still active, or at least, *something* had an open reference to it. It's hard to speculate about the cause for that without more info about how you've got the logging set up. (Are you using the log collector? Are you rotating logs?) But I seriously doubt it represents a Postgres bug. Unlike the situation with data files, it's very hard to see how PG could be holding onto a reference to an unused log file. It only ever writes to one log file at a time. 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