Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 822FF64FCC1 for ; Tue, 26 Aug 2008 04:08:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 34399-06 for ; Tue, 26 Aug 2008 04:08:21 -0300 (ADT) X-Greylist: delayed 00:22:09.27619 by SQLgrey-1.7.6 Received: from new-mail.nec.com.cn (new-mail.nec.com.cn [211.100.22.21]) by postgresql.org (Postfix) with ESMTP id 1076064FCC0 for ; Tue, 26 Aug 2008 04:08:21 -0300 (ADT) Received: from new-mail.nec.com.cn (localhost [127.0.0.2] (may be forged)) by new-mail.nec.com.cn with ESMTP id m7Q6kPFR007247 for ; Tue, 26 Aug 2008 14:46:25 +0800 (CST) (envelope-from duanlg@nec-as.nec.com.cn) Received: from internal-mail.nec.com.cn ([172.28.88.254]) by new-mail.nec.com.cn with ESMTP id m7Q6juok007097 for ; Tue, 26 Aug 2008 14:45:56 +0800 (CST) (envelope-from duanlg@nec-as.nec.com.cn) Received: from mailsv.nec-as.nec.com.cn (localhost.localdomain [127.0.0.1]) by internal-mail.nec.com.cn (Postfix) with ESMTP id 0546313F58 for ; Tue, 26 Aug 2008 14:45:50 +0800 (CST) Received: from [127.0.0.1] ([172.28.90.180]) by mailsv.nec-as.nec.com.cn (8.11.6/8.11.6) with ESMTP id m7Q6jtg06344 for ; Tue, 26 Aug 2008 14:45:55 +0800 Date: Tue, 26 Aug 2008 14:45:10 +0800 From: Duan Ligong To: pgsql-admin@postgresql.org Subject: control the number of clog files and xlog files Message-Id: <20080826141003.C4C8.DUANLG@nec-as.nec.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.08.01 [en] X-MAIL: new-mail.nec.com.cn m7Q6juok007097 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/161 X-Sequence-Number: 30006 Hi, Would you like to be so kind as to answer the following questions: - Is there any way to control the number of clog files and xlog files? I encounter an issue that there are too many clog files under the pg_clog/ directory which occupy more space than I can endure.. - What determines the number of clog files? what determines the number of xlog files? - I understand pg_xlog is used to record WAL. but what is pg_clog is used to? Is it used to record some meta-information on the xlog? Best regards Gera