Re: Stale description for pg_basebackup
От
Fujii Masao
Тема
Re: Stale description for pg_basebackup
Дата
Msg-id
6065ff15-2020-c503-91df-2e14b45cc118@oss.nttdata.com
Ответ на
Re: Stale description for pg_basebackup (Kyotaro Horiguchi)
Список
Дерево обсуждения
Stale description for pg_basebackup Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Stale description for pg_basebackup Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Stale description for pg_basebackup Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Stale description for pg_basebackup Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Stale description for pg_basebackup Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Stale description for pg_basebackup Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Stale description for pg_basebackup Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Stale description for pg_basebackup Fujii Masao <masao.fujii@oss.nttdata.com>
Re: Stale description for pg_basebackup Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Stale description for pg_basebackup Fujii Masao <masao.fujii@oss.nttdata.com>
On 2021/04/21 11:09, Kyotaro Horiguchi wrote: > At Wed, 21 Apr 2021 10:43:30 +0900 (JST), Kyotaro Horiguchi wrote in >> At Tue, 20 Apr 2021 13:32:35 +0900 (JST), Kyotaro Horiguchi wrote in >>> Hello. >>> >>> It seems to me that there's a stale description in the documentation >>> of pg_basebackup. I think you're right. > Hmm. Some words need to be qualified. Attached. + If you are using -X none, there is no guarantee on + the primary that all WAL files required for the backup are archived at + the end of backup. I don't think that this should be picked up as a limitation of standby backup. Because users basically want to make pg_basebackup wait for all required WAL files to be archived on the standby, in the standby backup case. When archive_mode is set + to on on the "on" should be "always"? + standby, pg_basebackup may wait for a long + time for all the required WAL files to be archived. In that case, You + may need to call pg_switch_wal() on the primary to + complete it sooner. What about the following description? ------------------- When you are using -X none, if write activity on the primary is low, pg_basebackup may need to wait a long time for all WAL files required for the backup to be archived. It may be useful to run pg_switch_wal on the primary in order to trigger an immediate WAL file switch and archiving. ------------------- Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
В списке pgsql-hackers по дате отправления
От: Andrew Dunstan
Дата:
От: Andrew Dunstan
Дата: