Too problems when using Postgresql8.3.7,Please help!

From: "Richard" <husttripper(at)vip(dot)sina(dot)com>
To: "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Too problems when using Postgresql8.3.7,Please help!
Date: 2010-08-03 15:27:54
Message-ID: 201008032327540627685@vip.sina.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

1.To add live HA to PG, I transfer WAL of a database instance(Primary node) to another database instance (standby node) at real time, and keep startup alive in standby node to recovery WAL online,so that standby node can be a hot standby.But I got some trouble. When standby node switch to primary mode to accept connections, of course after startup initilize the WAL and exit, the postgres process ereport(ERROR when mdread function enter ERROR branch, and I got message like this "could not read block X of relation X/X/X: read only %d of %d bytes". I spent two days to figure out what happened, but it is too hard.Please help me.

2. When restore data from a LIVE backup , I got message like "unexpected pageaddr %X/%X in log file %u, segment %u, offset %u" "WAL ends before end time of backup dump". It seems the WAL was
corrupted. I found the LSN where the error occured contained the wrong pageaddr, the pageaddr was 8K before it's real address.What was wrong?
--------------
Richard
2010-08-03

Browse pgsql-hackers by date

  From Date Subject
Next Message Yeb Havinga 2010-08-03 15:34:05 Re: patch for check constraints using multiple inheritance
Previous Message Peter Eisentraut 2010-08-03 15:15:26 Re: review: xml_is_well_formed