X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C5CCA32A262 for ; Thu, 7 Oct 2004 09:44:12 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92030-01 for ; Thu, 7 Oct 2004 08:43:48 +0000 (GMT) Received: from mailgate3.cinetic.de (mailgate3.cinetic.de [217.72.192.164]) by svr1.postgresql.org (Postfix) with ESMTP id 28DCE32A269 for ; Thu, 7 Oct 2004 09:39:00 +0100 (BST) Received: from exchange02.int.cinetic.de (exchange02.int.cinetic.de [10.2.1.12]) by mailgate3.cinetic.de (8.11.6p2/8.11.2/SuSE Linux 8.11.0-0.4) with ESMTP id i978c9K31844; Thu, 7 Oct 2004 10:38:09 +0200 Received: from [10.1.8.177] ([10.1.8.177]) by exchange02.int.cinetic.de with Microsoft SMTPSVC(6.0.3790.0); Thu, 7 Oct 2004 10:38:09 +0200 Message-ID: <41650071.5040402@webde-ag.de> Date: Thu, 07 Oct 2004 10:38:09 +0200 From: Michael Kleiser Reply-To: mkl@webde-ag.de Organization: WEB.DE AG User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040803 X-Accept-Language: de, , de-de, de-at, en, en-us MIME-Version: 1.0 To: simon@2ndquadrant.com Cc: pgsql-admin@postgresql.org Subject: Re: Multiple WALs for PITR ? References: <4001DEAF7DF9BD498B58B45051FBEA6501B9D709@25exch1.vicorpower.vicr.com> In-Reply-To: <4001DEAF7DF9BD498B58B45051FBEA6501B9D709@25exch1.vicorpower.vicr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Oct 2004 08:38:09.0758 (UTC) FILETIME=[F98C97E0:01C4AC48] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/111 X-Sequence-Number: 15104 Goulet, Dick wrote: > As an Oracle DBA primarily, moving more towards PostGreSQL as time > passes, the "alter system switch logfile" command is very often used at > the end of a hot backup to force a logfile switch and consequently > provide a full archive log set. The command causes the database engine > to cease using the current online redo log and have it archived to the > archive log destination. This is the only way to be sure that all > required archive logs are present in a backup to reconstitute the > database at another location. > > > Dick Goulet > Senior Oracle DBA > Oracle Certified 8i DBA > -----Original Message----- > From: simon@2ndquadrant.com [mailto:simon@2ndquadrant.com] > Sent: Wednesday, October 06, 2004 5:36 PM > To: mkl@webde-ag.de > Cc: pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Multiple WALs for PITR ? > > > Michael Kleiser wrote on 06.10.2004, 16:29:08: > > I wan`t to use Point in Time Recovery > > I allread read > > http://developer.postgresql.org/docs/postgres/backup-online.html#BACKU > > P-ARCHIVING-WAL > > > > Good! > > > But I still wonder, if it is possible for PostgreSQL 8.0 to write > > multiple, redundant WAL-Files like Oracles with its redo-log-groups ? > > Not currently. > > That was something I considered, though in the end lacked both > implementation time and justification for. > > If you can explain why you think that might be necessary, I'd be happy > to consider it for v8.1. > > RAID-10 seems a good solution for me... I heared about some RAIDs saying "yes your data is on disk" to the oracle-database, but it wasn't so. So Oracle can't do a complete restore. The solution was to store the redo-log-files (=WALS) to local attached disk, but of course redundant on multiple disks. But other oracle-dba use RAIDs to store the redo-logs with no problems. > > > > > Is threre an equivalent to Oracles "ALTER SYSTEM SWITCH LOGFILE" ? > > > > Not currently. > > Again, if you can say why we might want that, it can also be added - > other than "they have it, so we want it too" :-) In the online-backup-strategie described in http://developer.postgresql.org/docs/postgres/backup-online.html#BACKUP-ARCHIVING-WAL thre must be a special attention fir active WAL, if one want to backup it also. With "ALTER SYSTEM SWITCH LOGFILE" one could make it to a not active WAL. This would make it easier to backup it, especially if one want to use backups-programms like amanda. If there where multiple redundant WALs, one could compare them as a consistency-check. But this is only possible if nobody writes to the compared files. > > This is a likely addition for 8.1, since we will most likely want to > archive xlog files every N minutes, whatever the transaction rate, > allowing people to specify a maximum period of data loss - but this > seemed like an enhancement rather than a definite feature for 8.0 > Great! Regards Michael Kleiser