If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Warm Standby - history file questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-22-12, 12:35
ptown ptown is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
Warm Standby - history file questions

I am a newbie tasked with setting up a warm standby server.

Here is the restore command that I am using:

restore_command = 'pg_standby -d /opt/novell/idm/Postgres/data/archives %f %p %r 2>>standby.log'

I can see that pg_standby makes use of the history file created in pg_xlog. I copied that file to /opt/novell/idm/Postgres/data/archives, the directory that contains the archives copied from the production server. I did not change the content. Here is the content:

1 000000010000000000000002 before transaction 0 at 1999-12-31 18:00:00-06

The production logs begin with 00000001000000000000001A and go up from there. About 90 logs have accumulated. My standby.log shows:
Waiting for WAL file : 000000020000000000000002
That file is in the pg_xlog file on the standby server. It is not correct for the production server log sequence. Will changing the content of the .history log fix this? Should I edit that file?
Reply With Quote
  #2 (permalink)  
Old 01-24-12, 16:42
ptown ptown is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
Working

The solution was to kill off all postgres related pids and restart.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On