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; ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |