Re: replication issue

From: Dhandapani Shanmugam <postgresql95(at)gmail(dot)com>
To: Samed YILDIRIM <samed(at)reddoc(dot)net>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: replication issue
Date: 2018-04-09 09:09:51
Message-ID: CAAj4MFEiBDRF0JVjnErZYKBQ0UraXAcPF2QFr5LTDDzzhr7Pag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks for your response Samed.

I have set recovery_target_timeline='latest', however getting below error.

2018-04-09 16:58:26 SGT FATAL: highest timeline 1 of the primary is behind
recovery timeline 2
cp: cannot stat ‘/u101/oradata/postgres/standby/pg_xlog/00000003.history’:
No such file or directory

On Mon, Apr 9, 2018 at 2:29 PM, Samed YILDIRIM <samed(at)reddoc(dot)net> wrote:

> Hi Dhandapani,
>
> It looks a recover operation or a switchover/failover operation has been
> applied. You can add following line to your recovery.conf file to follow
> new timeline.
>
> recovery_target_timeline = 'latest'
>
> https://www.postgresql.org/docs/10/static/recovery-target-settings.html
> https://www.postgresql.org/docs/10/static/continuous-
> archiving.html#BACKUP-TIMELINES
>
> Best regards.
>
>
> İyi çalışmalar.
> Samed YILDIRIM
>
>
>
> 09.04.2018, 11:52, "Dhandapani Shanmugam" <postgresql95(at)gmail(dot)com>:
>
> I am getting below error in logfile
>
> 2018-04-09 16:51:00 SGT LOG: invalid record length at 0/1F000098: wanted
> 24, got 0
> 2018-04-09 16:51:00 SGT FATAL: highest timeline 1 of the primary is
> behind recovery timeline 2
>
>
> On Mon, Apr 9, 2018 at 2:11 PM, Dhandapani Shanmugam <
> postgresql95(at)gmail(dot)com> wrote:
>
> Hi All,
>
> I am setting up streaming replication and getting below error when
> starting the postgreSQL instance on stanby server. Need your expert advise
>
> postgres 26110 26108 0 16:35 ? 00:00:00 postgres: startup
> process recovering 00000002000000000000001F
>
> Below are my content of recovery.conf
>
> standby_mode = 'on'
> primary_conninfo = 'host=188.33.44.33 port=5432 user=replication'
> restore_command = 'cp /u101/oradata/postgres/standby/pg_xlog/%f %p'
>
> -D
>
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ertan Küçükoğlu 2018-04-09 15:49:48 SSL error: decryption failed or bad mac
Previous Message Samed YILDIRIM 2018-04-09 08:59:16 Re: replication issue