Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 7BF9D13B3874 for ; Fri, 30 Mar 2012 07:35:02 -0300 (ADT) Received: from mail-bk0-f46.google.com ([209.85.214.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SDZAb-0006W3-6p for pgsql-admin@postgresql.org; Fri, 30 Mar 2012 10:35:01 +0000 Received: by bkcik5 with SMTP id ik5so403542bkc.19 for ; Fri, 30 Mar 2012 03:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=/TIrBz7cAXnvNA1Goy/sMtaq81+zh54HMYsZKNx4YdI=; b=RwU47x1kc4EynK/ERtSXn1WEi+f+/6gVXCCT4vDdUP/J5NaW/zOZ2ogtEApugXb1ix A2tmoQpke70jGYI08+4qv5gqT8joSJXCvKA638TEhWBPLfrDh95EshYdmnx/uPKvpw+V 2h6yzlQ3O0qECZKoW90Tiv4dJk/mQwx7EH4IAN9PKNAAnx29E/cjsD+/iyM9AEkumUJe CvL/HM+grVk1FueJJwvZysGZBY+w7CnLbfzPiX9fO+SN7zKGx9s9vFvro8nCzDrQbsMY RoOfhEJq0f0qbuRPtWbPGt1BUVqGFfCY45kQlLwSciOiO7hUsot21+SlSoHI7lPQXcCX lygg== Received: by 10.204.155.143 with SMTP id s15mr723961bkw.44.1333103687868; Fri, 30 Mar 2012 03:34:47 -0700 (PDT) Received: from zeus.local (88-149-211-141.dynamic.ngi.it. [88.149.211.141]) by mx.google.com with ESMTPS id u5sm19832336bka.5.2012.03.30.03.34.45 (version=SSLv3 cipher=OTHER); Fri, 30 Mar 2012 03:34:46 -0700 (PDT) Message-ID: <4F758C45.3000704@gmail.com> Date: Fri, 30 Mar 2012 12:34:45 +0200 From: Alexander Fortin User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: pg_database_size() and actual disk space usage References: <4F742D3A.8010501@gmail.com> <4F743C47.1040907@gmail.com> <4F746282.3060406@innogames.de> <4F755EBE.2070908@gmail.com> <4F758796.6090000@innogames.de> In-Reply-To: <4F758796.6090000@innogames.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/138 X-Sequence-Number: 39326 On 3/30/12 12:14 PM, Bernhard Schrader wrote: > i hope this will help you. Thanks Bernhard, I'll check the thread right now. In the meanwhile I've noticed this strange behavior too and I was already going to post it, maybe it's related to what you're suggesting: # df -h /var/lib/postgresql Filesystem Size Used Avail Use% Mounted on /dev/md_d0 128G 44G 85G 35% /var/lib/postgresql # /etc/init.d/postgresql stop * Stopping PostgreSQL 9.1 database server ...done. # df -h /var/lib/postgresql Filesystem Size Used Avail Use% Mounted on /dev/md_d0 128G 36G 93G 28% /var/lib/postgresql so, with Postgres shut down, numbers get back to make sense to me. -- Alexander Fortin http://about.me/alexanderfortin/