Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkEUe-0007Mv-2c for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 18:01:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkEUd-0007tm-L5 for pgsql-performance@arkaria.postgresql.org; Wed, 14 Sep 2016 18:01:07 +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 1bkEUd-0007tg-2k for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 18:01:07 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bkEUY-00064A-V5 for pgsql-performance@postgresql.org; Wed, 14 Sep 2016 18:01:05 +0000 Received: by mail-wm0-x233.google.com with SMTP id i130so61453088wmf.0 for ; Wed, 14 Sep 2016 11:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=oxX8LVlUzzaXamba3WCZSUj7HofxaMMQewPYxrBmCKE=; b=BT/0TxehWRLSe4F4mWQXQAHx0Tv6cBC/nyQgDa/4Y6PheDOES9ON8HC0VKxeqQyGHq LVW0zHntPzSPUCQ2i2HCbMej4yD2ozm3KkDtibVL0OUGR49HaPEsZGfkPUDUNc70iVXH ioAluTgA9Kns6OWEJ0jv7dw89XzwfWbXt8+Lidh3j5MKFYUkA7AaGzrueGQr/pg3lTe7 ojtqm8Mn6TmHTo52VYGaCFmDkoCThaxYW6tholHwQgZorPx5CoVe82mzAg0CxS+1AaWk 95EY6AJ+Ns4s6qz+VFR0gzcQ9nT50BModETI0+w92NGXkaO/75zV/8dD7d25BPj1inhF 0JqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=oxX8LVlUzzaXamba3WCZSUj7HofxaMMQewPYxrBmCKE=; b=FGARIF2Dr6OnTbhDOpMuzugPx7nx0UrAuUxgDB0vHu6UuMX/1/StKDXuFPkyIuZAnq 7knAFxdxf+zMiic/BFlO+rsumF3cjl59EWPHzx8V/B2IiL8m75ozPukz+OIm6N+waXfu 4p9Evp1wXg9LSC0lGMycMhQbt7k2AjOfUyQcDVF65wXL4pzxTI70GLNqnJl/3wkBLwOU RDDjpA2eQT8kS57tUA/vXKKflfqHpnX/9aB8M+yCgP95lw67/sus9oi/hzPAPDcKt3Zw FEI6lgOAUFX9FrJbKqTsH9xud3rTt18AzYF+DjtaCPothIO8WdJE8AxK180Kob+J7FBS QTyQ== X-Gm-Message-State: AE9vXwNaekKZmwkrpTieUleW67dV4/MyVCaZHVYQG/pBURL5ds4L79JM+bOCa95cM53eIA== X-Received: by 10.194.18.202 with SMTP id y10mr3955441wjd.174.1473876061215; Wed, 14 Sep 2016 11:01:01 -0700 (PDT) Received: from [192.168.2.5] (2-230-140-245.ip202.fastwebnet.it. [2.230.140.245]) by smtp.gmail.com with ESMTPSA id v203sm16100wmv.2.2016.09.14.11.01.00 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Sep 2016 11:01:00 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Disk filled-up issue after a lot of inserts and drop schema From: Pietro Pugni In-Reply-To: <16009.1473875751@sss.pgh.pa.us> Date: Wed, 14 Sep 2016 20:00:59 +0200 Cc: Rick Otten , pgsql-performance@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <28460.1473864279@sss.pgh.pa.us> <16009.1473875751@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -2.7 (--) 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 Log rotation was active and set to 5MB or 1 day. I don=E2=80=99t know if it is a bug, but Postgres was logging even if loggi= ng_collector was set to =E2=80=9Coff=E2=80=9D. Also, that big log file wasn=E2=80=99t visible for me, in fact =E2=80=9Cls= =E2=80=9D and =E2=80=9Cdu=E2=80=9D didn=E2=80=99t detect it. Thanks again Best regards, Pietro Pugni > Il giorno 14 set 2016, alle ore 19:55, Tom Lane ha sc= ritto: >=20 > Pietro Pugni writes: >> I=E2=80=99ve jsut discovered the issue.. I set "logging_collector=3Doff= =E2=80=9D in the previous email but didn=E2=80=99t comment the other log* p= arameters, so Postgres was logging every single INSERT! This was caused the= disk to fill up. >=20 > Ah. >=20 >> The strange issue is that the log file didn=E2=80=99t exists when the di= sk filled up. I personally looked for it but it wasn=E2=80=99t where it sho= uld have been ( /var/log/postgesql/ ), so I can=E2=80=99t exactly confirm t= hat the issue was the log file getting bigger and bigger. >=20 > 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. >=20 > regards, tom lane --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance