|From:||Heikki Linnakangas <hlinnaka(at)iki(dot)fi>|
|Subject:||Refactor pg_rewind code and make it work against a standby|
|Views:||Raw Message | Whole Thread | Download mbox | Resend email|
I started to hack on making pg_rewind crash-safe (see ), but I
quickly got side-tracked into refactoring and tidying up up the code in
general. I ended up with this series of patches:
The first four patches are just refactoring that make the code and the
logic more readable. Tom Lane commented about the messy comments earlier
(see ), and I hope these patches will alleviate that confusion. See
commit messages for details.
The last patch refactors the logic in libpq_fetch.c, so that it no
longer uses a temporary table in the source system. That allows using a
hot standby server as the pg_rewind source.
This doesn't do anything about pg_rewind's crash-safety yet, but I'll
try work on that after these patches.
|Next Message||Anastasia Lubennikova||2020-08-19 13:15:40||Re: COPY FREEZE and setting PD_ALL_VISIBLE/visibility map bits|
|Previous Message||Hamid Akhtar||2020-08-19 12:45:41||Re: track_planning causing performance regression|