pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Archive timeline history files in standby if archive_mode is set 7+ messages / 1 participants [nested] [flat]
* pgsql: Archive timeline history files in standby if archive_mode is set @ 2020-09-29 07:26 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2020-09-29 07:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Archive timeline history files in standby if archive_mode is set to "always". Previously the standby server didn't archive timeline history files streamed from the primary even when archive_mode is set to "always", while it archives the streamed WAL files. This could cause the PITR to fail because there was no required timeline history file in the archive. The cause of this issue was that walreceiver didn't mark those files as ready for archiving. This commit makes walreceiver mark those streamed timeline history files as ready for archiving if archive_mode=always. Then the archiver process archives the marked timeline history files. Back-patch to all supported versions. Reported-by: Grigory Smolkin Author: Grigory Smolkin, Fujii Masao Reviewed-by: David Zhang, Anastasia Lubennikova Discussion: https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/40a8fb1e0f413110207773ee70f4d1105c2b4345 Modified Files -------------- doc/src/sgml/high-availability.sgml | 3 ++- src/backend/replication/walreceiver.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Archive timeline history files in standby if archive_mode is set @ 2020-09-29 07:26 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2020-09-29 07:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Archive timeline history files in standby if archive_mode is set to "always". Previously the standby server didn't archive timeline history files streamed from the primary even when archive_mode is set to "always", while it archives the streamed WAL files. This could cause the PITR to fail because there was no required timeline history file in the archive. The cause of this issue was that walreceiver didn't mark those files as ready for archiving. This commit makes walreceiver mark those streamed timeline history files as ready for archiving if archive_mode=always. Then the archiver process archives the marked timeline history files. Back-patch to all supported versions. Reported-by: Grigory Smolkin Author: Grigory Smolkin, Fujii Masao Reviewed-by: David Zhang, Anastasia Lubennikova Discussion: https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7be02a3bf03a8bec605d089f34ceb5f441e754a6 Modified Files -------------- doc/src/sgml/high-availability.sgml | 3 ++- src/backend/replication/walreceiver.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Archive timeline history files in standby if archive_mode is set @ 2020-09-29 07:26 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2020-09-29 07:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Archive timeline history files in standby if archive_mode is set to "always". Previously the standby server didn't archive timeline history files streamed from the primary even when archive_mode is set to "always", while it archives the streamed WAL files. This could cause the PITR to fail because there was no required timeline history file in the archive. The cause of this issue was that walreceiver didn't mark those files as ready for archiving. This commit makes walreceiver mark those streamed timeline history files as ready for archiving if archive_mode=always. Then the archiver process archives the marked timeline history files. Back-patch to all supported versions. Reported-by: Grigory Smolkin Author: Grigory Smolkin, Fujii Masao Reviewed-by: David Zhang, Anastasia Lubennikova Discussion: https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/33441753820b4695523ce29ddec0465d6552f087 Modified Files -------------- doc/src/sgml/high-availability.sgml | 3 ++- src/backend/replication/walreceiver.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Archive timeline history files in standby if archive_mode is set @ 2020-09-29 07:26 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2020-09-29 07:26 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Archive timeline history files in standby if archive_mode is set to "always". Previously the standby server didn't archive timeline history files streamed from the primary even when archive_mode is set to "always", while it archives the streamed WAL files. This could cause the PITR to fail because there was no required timeline history file in the archive. The cause of this issue was that walreceiver didn't mark those files as ready for archiving. This commit makes walreceiver mark those streamed timeline history files as ready for archiving if archive_mode=always. Then the archiver process archives the marked timeline history files. Back-patch to all supported versions. Reported-by: Grigory Smolkin Author: Grigory Smolkin, Fujii Masao Reviewed-by: David Zhang, Anastasia Lubennikova Discussion: https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/462ff7966997301de3ce469b1034a0aba44957c1 Modified Files -------------- doc/src/sgml/high-availability.sgml | 3 ++- src/backend/replication/walreceiver.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Archive timeline history files in standby if archive_mode is set @ 2020-09-29 07:27 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2020-09-29 07:27 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Archive timeline history files in standby if archive_mode is set to "always". Previously the standby server didn't archive timeline history files streamed from the primary even when archive_mode is set to "always", while it archives the streamed WAL files. This could cause the PITR to fail because there was no required timeline history file in the archive. The cause of this issue was that walreceiver didn't mark those files as ready for archiving. This commit makes walreceiver mark those streamed timeline history files as ready for archiving if archive_mode=always. Then the archiver process archives the marked timeline history files. Back-patch to all supported versions. Reported-by: Grigory Smolkin Author: Grigory Smolkin, Fujii Masao Reviewed-by: David Zhang, Anastasia Lubennikova Discussion: https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4d342b9d41533df94b1b637d814333a716ec1050 Modified Files -------------- doc/src/sgml/high-availability.sgml | 3 ++- src/backend/replication/walreceiver.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Archive timeline history files in standby if archive_mode is set @ 2020-09-29 07:27 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2020-09-29 07:27 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Archive timeline history files in standby if archive_mode is set to "always". Previously the standby server didn't archive timeline history files streamed from the primary even when archive_mode is set to "always", while it archives the streamed WAL files. This could cause the PITR to fail because there was no required timeline history file in the archive. The cause of this issue was that walreceiver didn't mark those files as ready for archiving. This commit makes walreceiver mark those streamed timeline history files as ready for archiving if archive_mode=always. Then the archiver process archives the marked timeline history files. Back-patch to all supported versions. Reported-by: Grigory Smolkin Author: Grigory Smolkin, Fujii Masao Reviewed-by: David Zhang, Anastasia Lubennikova Discussion: https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/059caf36c3074afd998b6e5f36ea9da460dcaee8 Modified Files -------------- doc/src/sgml/high-availability.sgml | 3 ++- src/backend/replication/walreceiver.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Archive timeline history files in standby if archive_mode is set @ 2020-09-29 07:27 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 7+ messages in thread From: Fujii Masao @ 2020-09-29 07:27 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Archive timeline history files in standby if archive_mode is set to "always". Previously the standby server didn't archive timeline history files streamed from the primary even when archive_mode is set to "always", while it archives the streamed WAL files. This could cause the PITR to fail because there was no required timeline history file in the archive. The cause of this issue was that walreceiver didn't mark those files as ready for archiving. This commit makes walreceiver mark those streamed timeline history files as ready for archiving if archive_mode=always. Then the archiver process archives the marked timeline history files. Back-patch to all supported versions. Reported-by: Grigory Smolkin Author: Grigory Smolkin, Fujii Masao Reviewed-by: David Zhang, Anastasia Lubennikova Discussion: https://postgr.es/m/54b059d4-2b48-13a4-6f43-95a087c92367@postgrespro.ru Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/fd26f78231830b20d8b5f8391f97d2ccebd492b7 Modified Files -------------- doc/src/sgml/high-availability.sgml | 3 ++- src/backend/replication/walreceiver.c | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-09-29 07:27 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-09-29 07:26 pgsql: Archive timeline history files in standby if archive_mode is set Fujii Masao <fujii@postgresql.org> 2020-09-29 07:26 pgsql: Archive timeline history files in standby if archive_mode is set Fujii Masao <fujii@postgresql.org> 2020-09-29 07:26 pgsql: Archive timeline history files in standby if archive_mode is set Fujii Masao <fujii@postgresql.org> 2020-09-29 07:26 pgsql: Archive timeline history files in standby if archive_mode is set Fujii Masao <fujii@postgresql.org> 2020-09-29 07:27 pgsql: Archive timeline history files in standby if archive_mode is set Fujii Masao <fujii@postgresql.org> 2020-09-29 07:27 pgsql: Archive timeline history files in standby if archive_mode is set Fujii Masao <fujii@postgresql.org> 2020-09-29 07:27 pgsql: Archive timeline history files in standby if archive_mode is set Fujii Masao <fujii@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox