Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 49D1813B3874 for ; Fri, 30 Mar 2012 07:45:27 -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 1SDZKg-0006fL-04 for pgsql-admin@postgresql.org; Fri, 30 Mar 2012 10:45:26 +0000 Received: by bkcik5 with SMTP id ik5so411352bkc.19 for ; Fri, 30 Mar 2012 03:45:12 -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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Qfs39pO5MeXpR3x5c8XKrFKpveiNTPsu1LtmlyfgWes=; b=ePS2uYv53xY1Sq66RxReT9G4nBeFjndd7wRlv+O9ef9jEYlTaASmPJAqVIFLqTFItP uMsXkqr3QygKv1rhipOzYl5JDm7D3GronH40z+EkHUV62/K4hL8EMojmnEGuUUYi7+Yv RCNc8UXsuZc0g6N5vfQWE7OFdTov4lz6qBs7F3AjyX6Sb/O0aBN2JxbFzB8tkq+Uml0L /N8ieq0jv8+53tTqZb/y1G8nBvOBABRSbzAQZGUSJUWcfyStG3O2eWGIXAArtQWPUt3g nwH1VMwVa4dqV0nP/tkZDSm4xYTC4zrVBYMBtuQcVTtO1M46pqJt6AQE6a/iLCAdpB0+ W4kw== Received: by 10.204.151.81 with SMTP id b17mr758538bkw.17.1333104312705; Fri, 30 Mar 2012 03:45:12 -0700 (PDT) Received: from zeus.local (88-149-211-141.dynamic.ngi.it. [88.149.211.141]) by mx.google.com with ESMTPS id c4sm19916953bkh.0.2012.03.30.03.45.10 (version=SSLv3 cipher=OTHER); Fri, 30 Mar 2012 03:45:11 -0700 (PDT) Message-ID: <4F758EB5.30005@gmail.com> Date: Fri, 30 Mar 2012 12:45:09 +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: Vladimir Rusinov CC: 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> <4F758C45.3000704@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/140 X-Sequence-Number: 39328 On 3/30/12 12:39 PM, Vladimir Rusinov wrote: > Are you rotating postgresql log files? If so, how do you do that? > > Do you have archive_command set in postgresql.conf? Hi Vladimir. Yes, I'm using the packaged Postgres 9.1.2 version shipped with Ubuntu 11.10. From my understanding, it's logrotate that does the job, given that the package postgresql-common creates an entry for daily /var/log/postgresql/*.log rotation. As for the archive_command, no, it's defaulted to empty: #archive_command = '' -- Alexander Fortin http://about.me/alexanderfortin/