Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 78C62632E24 for ; Tue, 3 Mar 2009 15:40:15 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 78291-10 for ; Tue, 3 Mar 2009 15:40:14 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from regoc.srce.hr (regoc.srce.hr [161.53.2.69]) by mail.postgresql.org (Postfix) with ESMTP id 959C0632973 for ; Tue, 3 Mar 2009 15:40:08 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by regoc.srce.hr (Postfix) with ESMTP id C8ED51072A6 for ; Tue, 3 Mar 2009 20:40:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smtp.srce.hr Received: from regoc.srce.hr ([127.0.0.1]) by localhost (regoc.srce.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ocOnr1vU1qlg for ; Tue, 3 Mar 2009 20:40:06 +0100 (CET) Received: from pc-jsosic.srce.hr (pc-jsosic.srce.hr [161.53.254.164]) by regoc.srce.hr (Postfix) with ESMTPSA id 51E2B10729D for ; Tue, 3 Mar 2009 20:40:05 +0100 (CET) Date: Tue, 3 Mar 2009 20:40:05 +0100 From: Jakov Sosic To: pgsql-admin@postgresql.org Subject: Backing up postgresql database Message-ID: <20090303204005.3607451e@pc-jsosic.srce.hr> Organization: SRCE X-Mailer: Claws Mail 3.7.0 (GTK+ 2.12.11; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: 200903/32 X-Sequence-Number: 31532 Hi! I have a problem with WAL files... I have a fairly busy server, with lots of transactions every second. Database is backend for Zabbix monitoring application, and it writes performance counters of 500+ hosts every few seconds. DB is approx 150GB. I'm trying to implement "Continuous Archiving" backup solution, but I have a problem. In 1 hour of copying WAL files to another hard drive, PostgreSQL generated 304 WAL files of 16 MB's. I mean that is really apsurd. Here is my config related to WAL: fsync = on synchronous_commit = on wal_sync_method = fsync wal_buffers = 512kB wal_writer_delay = 3000ms commit_delay = 10 commit_siblings = 5 checkpoint_segments = 32 checkpoint_warning = 300s archive_mode = on archive_command = 'test ! -f /data/backup/WAL/%f && cp %p /data/backup/WAL/%f' This is absolutely unacceptable to backup this volume of information. Quick calculations gives approx 292 GB of data per day, on a database that has only 150GB ondisk. Where am I making mistake? Why is PostgreSQL generating so much WAL's? I'm using 8.3.4 from official PostgreSQL yum repository on CentOS 5.2. I've looked for pg_clearxlogtail program, as suggested in some threads on this list, but I can't find that program on my hard disk, and google isn't helping either. If you need more information, I will post it. Thank you. -- | Jakov Sosic | ICQ: 28410271 | PGP: 0x965CAE2D | ================================================================= | start fighting cancer -> http://www.worldcommunitygrid.org/ |