Re: pg_basebackup and pg_switch_wal()

From: Sergei Kornilov <sk(at)zsrv(dot)org>
To: Fabrice Chapuis <fabrice636861(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_basebackup and pg_switch_wal()
Date: 2025-07-29 10:15:30
Message-ID: 19617071753784130@qvxj4z7i6zm4ub2j.iva.yp-c.yandex.net
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

> This is not the case also when the backup is made from the primary?

On primary it is handled in do_pg_backup_stop function (called from perform_base_backup after basebackup was transferred), without explicitly called pg_switch_wal from pg_basebackup. pg_basebackup can change this behavior using options to the BASE_BACKUP replication command.

regards, Sergei

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2025-07-29 10:45:08 Re: Logical replication launcher did not automatically restart when got SIGKILL
Previous Message Jim Jones 2025-07-29 10:15:28 Re: Regression with large XML data input