Re: Log archiving failing. Seems to be wrong timeline

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Log archiving failing. Seems to be wrong timeline
Дата
Msg-id CAMkU=1wrh+eChbGNJrYce=eOjzA0P7n5T83EjCvW+9qGVoB9eg@mail.gmail.com
обсуждение исходный текст
Ответ на Log archiving failing. Seems to be wrong timeline  (Chris Lewis <clewis@inview.co.uk>)
Ответы Re: Log archiving failing. Seems to be wrong timeline
Список pgsql-general
On Thu, Jun 30, 2016 at 3:53 AM, Chris Lewis <clewis@inview.co.uk> wrote:
> Hello,
>
> We have 2 postgresql servers (v 9.4.2)  master and slave in streaming
> replication. The overall cluster is controlled using pacemaker & corosync
> and the pgsql cluster agent which handles failover to, and promotion of, the
> slave.
>
> Recently a failover occured and I noticed that log archiving was failing on
> the master:

...

>
> Why are we trying to archive logs which belong to an old timeline?

Just because the timeline is old doesn't mean we want to destroy it.
Afterall, the reason for having timelines in the first place is to
preserve, not to destroy.

It sounds like someone removed the old timeline's log files from
pg_xlog, but did not remove the corresponding .ready files from
pg_xlog/archive_status.

If the old timeline's files are truly lost, then you will have to
carefully remove those corresponding .ready files.

Cheers,

Jeff


В списке pgsql-general по дате отправления:

Предыдущее
От: "Murphy, Kevin"
Дата:
Сообщение: Question about "grant create on database" and pg_dump/pg_dumpall
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Question about "grant create on database" and pg_dump/pg_dumpall