git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1b2b19f) | patch
Allow pg_rewind to use a standby server as the source system.
2020年11月12日 12:52:24 +0000 (14:52 +0200)
2020年11月12日 12:52:24 +0000 (14:52 +0200)
commit 9c4f5192f69ed16c99e0d079f0b5faebd7bad212
Allow pg_rewind to use a standby server as the source system.

Using a hot standby server as the source has not been possible, because
pg_rewind creates a temporary table in the source system, to hold the
list of file ranges that need to be fetched. Refactor it to queue up the
file fetch requests in pg_rewind's memory, so that the temporary table
is no longer needed.

Also update the logic to compute 'minRecoveryPoint' correctly, when the
source is a standby server.

Reviewed-by: Kyotaro Horiguchi, Soumyadeep Chakraborty
Discussion: https://www.postgresql.org/message-id/0c5b3783-af52-3ee5-f8fa-6e794061f70d%40iki.fi
doc/src/sgml/ref/pg_rewind.sgml diff | blob | blame | history
src/bin/pg_rewind/libpq_source.c diff | blob | blame | history
src/bin/pg_rewind/pg_rewind.c diff | blob | blame | history
src/bin/pg_rewind/t/003_extrafiles.pl diff | blob | blame | history
src/bin/pg_rewind/t/007_standby_source.pl [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /