Unix Technical Forum

Re: Question on warm standby log shipping

This is a discussion on Re: Question on warm standby log shipping within the Pgsql General forums, part of the PostgreSQL category; --> Jens Wilke wrote: > The restore script looks like: > > --snipp-- > from="$1"; > to="$2"; > while true; ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-16-2008, 02:41 PM
Alvaro Herrera
 
Posts: n/a
Default Re: Question on warm standby log shipping

Jens Wilke wrote:

> The restore script looks like:
>
> --snipp--
> from="$1";
> to="$2";
> while true; do
> if test -f "$ARCHIVEDIR/$from"; then
> src="$ARCHIVEDIR/$from";
> mv "$src" "$to";
> exit 0;
> fi
> # startup triggered
> if test -f $triggerfile; then
> exit 0;
> fi
> sleep 2;
> done
> --snipp--


You should not remove the segment until it's no longer needed. To
figure that out you can use %r of restore_command.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:02 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com