Re: Help with PITR in PostgreSQL 8.4

From: "Gilberto Castillo" <gilberto(dot)castillo(at)etecsa(dot)cu>
To: "Nestor A(dot) Diaz" <nestor(at)tiendalinux(dot)com>
Cc: "chiru r" <chirupg(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Help with PITR in PostgreSQL 8.4
Date: 2013-07-17 15:54:51
Message-ID: 37977.192.168.207.54.1374076491.squirrel@webmail.etecsa.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> Hi Chiru, I have done archiving on primary server, and recovery on
> standby server, howerver, after the first recovery I am unable to
> recover more wal files on standby server
>
> Can it be possible in 8.4 ? or just in 9.1 ?
>
> This is the recovery I use:
>
> << EOF
>
> restore_command = '/usr/lib/postgresql/8.4/bin/pg_standby -l -d -s 2 -t
> /var/run/postgresql/8.4-main.trigger
> /var/lib/postgresql/8.4/main/wal-archive %f %p %r
> 2>>/var/log/postgresql/postgresql-8.4-main-standby.log'
> recovery_end_command = 'rm -f /var/run/postgresql/8.4-main.trigger'
>
> EOF
>
>
Hello Nestor

I use its:

standby_mode = 'on'
primary_conninfo = 'host=X.X.X.X port=5432 user=XXXX password=YYYYYTT'
trigger_file = '/var/pgsql/data/pg_failover_trigger'
restore_command = 'cp /wal/%f /var/lib/postgresql/8.4/main/"%p"'

Saludos,
Gilberto Castillo
La Habana, Cuba

Attachment Content-Type Size
unknown_filename text/plain 179 bytes

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nestor A. Diaz 2013-07-17 16:40:11 Re: Help with PITR in PostgreSQL 8.4
Previous Message Nestor A. Diaz 2013-07-17 15:44:54 Re: Help with PITR in PostgreSQL 8.4