WAL archive on slave

Поиск
Список
Период
Сортировка
От James Sewell
Тема WAL archive on slave
Дата
Msg-id CANkGpBuD4xDW+gFLA7a-=i03-XT2uwtJQbsmFa=nGWMeTWhvgA@mail.gmail.com
обсуждение исходный текст
Ответы Re: WAL archive on slave  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general
Hello,

My understanding is that WAL archiving can not be enabled on the slave in a streaming replication pair.

If this is correct, is there a reason behind it? I can see logs showing up in pg_xlog, so could they not be archived?

The reason I ask is if this happened it would allow the following with a streaming replication pair (A,B):

  1. Start A as master
  2. Attach B as slave using basebackup
  3. work ....
  4. Promote B to master
  5. Restore A from a scheduled backup to a time before promotion
  6. Attach A as slave pointing at B's WAL archive 
If we used A's WAL archive in this case and A had writes after the promotion then we would get timeline errors.

As far as I can tell, using the WAL archive from B would resolve this issue.

Or have I missed something here?

Cheers,


Cheers,

James Sewell,
PostgreSQL Team Lead / Solutions Architect
______________________________________
 

Level 2, 50 Queen St, Melbourne VIC 3000

(+61) 3 8370 8000  W www.lisasoft.com  (+61) 3 8370 8099
 


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

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

Предыдущее
От: Reece Hart
Дата:
Сообщение: Re: password-less access, without using pg_hba
Следующее
От: David Johnston
Дата:
Сообщение: Re: password-less access, without using pg_hba