Re: Question on warm standby log shipping

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jens Wilke <jw_list(at)headissue(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question on warm standby log shipping
Date: 2008-05-15 16:51:10
Message-ID: 20080515165110.GH8221@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Manes 2008-05-15 16:56:02 Re: Password safe web application with postgre
Previous Message Jasbinder Bali 2008-05-15 16:39:23 DB Locks