Skip to content

Latest commit

 

History

History
150 lines (37 loc) · 3.35 KB

20150325_01.md

File metadata and controls

150 lines (37 loc) · 3.35 KB

PostgreSQL 9.5 add pg_rewind for Fast align for PostgreSQL unaligned primary & standby

作者

digoal

日期

2015-03-25

标签

PostgreSQL , 时间线分歧 , pg_rewind , 修复分歧 , 脑裂修复


背景

详细的测试文章见 :

<PostgreSQL 9.5 new feature - pg_rewind fast sync Split Brain Primary & Standby>

http://hlinnaka.iki.fi/2015/03/23/pg_rewind-in-postgresql-9-5/

pg_rewind已加入9.5了, 以后主备出现差异无法对其时, 可以使用这个快速的对其,

http://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=61081e75c6741024f7717ade0450090590e96c85

原理 :

<PostgreSQL 9.5 new feature - pg_rewind fast sync Split Brain Primary & Standby>

pic

pic

pic

pic

pic

pic

pic

pic

pic

pic

那么我写的这个重新同步的过程就可以使用pg_rewind来高效的实现了.

https://github.com/digoal/PostgreSQL_HA_with_primary_standby_2vip

您的愿望将传达给PG kernel hacker、数据库厂商等, 帮助提高数据库产品质量和功能, 说不定下一个PG版本就有您提出的功能点. 针对非常好的提议,奖励限量版PG文化衫、纪念品、贴纸、PG热门书籍等,奖品丰富,快来许愿。开不开森.

digoal's wechat