Received: from lx2.regaltronic.com (lx2.regaltronic.com [202.66.16.130]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f641bSa78826 for ; Tue, 3 Jul 2001 21:37:28 -0400 (EDT) (envelope-from harry@regaltronic.com) Received: (from daemon@localhost) by lx2.regaltronic.com (8.9.3/8.9.3) id JAA25606 for ; Wed, 4 Jul 2001 09:37:22 +0800 Received: from UNKNOWN(192.168.1.17), claiming to be "regaltronic.com" via SMTP by lx2, id smtpda25586; Wed Jul 4 09:37:17 2001 Message-ID: <3B427351.5581945D@regaltronic.com> Date: Wed, 04 Jul 2001 09:37:22 +0800 From: Harry Yau X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: WAL Question Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200107/20 X-Sequence-Number: 1771 Hi Dear: I am using Postgres 7.0 on RedHat Linux 6.3 right now. I wanna know is there transaction log in PostGres 7.0? I know there is WAL in 7.1. I am also thinking to upgrade to 7.1.2 too. I have read a lot of message in the PostgreSQL mailing list archive which is about the WAL. The following is some conclusion of what I learn from there: * checkpoint is made according to the config setting of checkpoint_segment and checkpoint_timeout. * after a checkpoint has been made, the log flush to the disk drive. * after a checkpoint has been made, any log segments writtend before the redo record ( the record in the log whick the REDO operation begin) are REMOVE to free disk space in WAL directory. * seems to me, everything is automatic. Please, point me out if there anything wrong. However, there is still something really confusing me. In PostgreSQL 7.1 Documentation Chapter 9 WAL , 9.2.1 Database Recovery with WAL, it tell me about the flow of the process to recover from WAL: 1. reads pg_control, 2. reads checkpoint record, 3. reads redo record, and then finally 4. REDO operation. I wonder do we need to run all the above procedures manually, after a crash?? or They will REALLY be automatically run when re-start the postgres after a crash?? It sounds like a miracle for me!! Thank You very Much Harry Yau