From: | "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: pg_xlog question |
Date: | 2003-08-06 07:22:50 |
Message-ID: | 3F30FA22.30689.46D49A4@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 6 Aug 2003 at 8:36, Mario Weilguni wrote:
> Does anybody know if pg_xlog are essential for postgres to start? What would
> happen if those files are lost, is the whole database corrupted or simply
> some transactions lost?
>
> I want to know if the following cluster setup would work:
> * /dbase - contains the database itself, is on a DRBD mirror device and spread
> across 2 machines.
> * /dbase/pg_xlog is a symlink to /pg_log and is a local partition, not a DRBD
> device
> * what would happen if a failover happens, and the pg_xlog on the other
> machine is empty. will postgres simply recreate those files (maybe some tx
> are lost) or cant this setup work correctly?
I doubt. It might end up with some transaction uncommittied in files.
If you could replicate/rsync pg_xlog to another machine, you could get it
correctly in case of failover.
Testing the proper failover under load is recommended and you need to have a
journallig file system to make sure that the transaction logs are in sane
state. PG can not recover from corrupted transaction logs..
HTH
Bye
Shridhar
--
We Klingons believe as you do -- the sick should die. Only the strongshould
live. -- Kras, "Friday's Child", stardate 3497.2
From | Date | Subject | |
---|---|---|---|
Next Message | Shridhar Daithankar | 2003-08-06 07:32:29 | Re: pg_xlog question |
Previous Message | Bjorn T Johansen | 2003-08-06 06:49:10 | Re: Column number 4 is out of range 0..3 ? |