Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsPpv-007wuy-AK for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Oct 2023 15:48:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qsPpt-002AA2-3y for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Oct 2023 15:48:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qsPps-002A9g-Pg for pgsql-hackers@lists.postgresql.org; Mon, 16 Oct 2023 15:48:53 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qsPpl-00111s-Di for pgsql-hackers@lists.postgresql.org; Mon, 16 Oct 2023 15:48:52 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-99c1c66876aso755392566b.2 for ; Mon, 16 Oct 2023 08:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1697471325; x=1698076125; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=jo7UQPOppHskh7NM1bFWboGM29dGUQRKlh86/KYCT3I=; b=RlU/1AKznjJSRg5j+VIdvibPAMJ3s5/WNeA560FulSFMr6G2lloXhSCMXixUQay+av 75LML9KECFedYYbRc4b7HKsDV9jicg/L6kiNjlpfSxQcCb6C5M61/mibUUQgisKqUwKr sjfC/rIR8hCx2hwVKYE3XIjaU1cu9flKW+JLFyB0YUkmhQgWCUwTX0NCkbY5IScsMd7D XrmXTcRJHFoGbddeduvugst9E64QeExCjWVFUQhUB9PjB4sGNaBLc4zs0aI3kSmQ7pXz M2FouHjuOYj2bqJ/ey2CUlsu+CGx92sI+YzC3hU0YjJrGUNr5gWw1Q6c200JEdKYTjwM p3VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697471325; x=1698076125; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jo7UQPOppHskh7NM1bFWboGM29dGUQRKlh86/KYCT3I=; b=iVnFx3Pz0I+cw4I3mT6ITY+B+IrLqPolfcvt4xwY5kmSBxJwLSdzpVruOhMgJXcCnb b1Gu1JYTmyiRNi3/HWNrDKAaBTaAgqplyzyWaE9LONn1l8N1oJn2jlg92rJd+dFgzdyz sMBL1zMsUrzuytalwy45EG2YZ5aurJ8tkfRRhnQzuJMFhtItspS75eH64qAK91GI8RPn fYZTtKQ6x1bxEXcFrJ3aAnTMQU4fbmlpAcUAyfsked6E85NRAG8iznchtzfHpjL9ugrn wdmS+29cUgM4DM+YI/ptP4JjUu2JshC0jlgrzGkvkxhmjiYeWUO75iZOdnPwY9DbgGSg WB/g== X-Gm-Message-State: AOJu0Ywh/YJ0KoLsVl0jKZyq3riPYK4YZKMwh7v1PKaT5P5Z2bb92iLl Xpvul5z2kkMYJ1ie8JrVCqVOMA== X-Google-Smtp-Source: AGHT+IF01C9XPTRQhg7bSaWLxmqyic6NPmKCkj8Pha82O6Z+krtUKQtdsiBCmXSJLT2JMwr6wJ8Gfg== X-Received: by 2002:a17:906:5341:b0:9a1:f21e:cdff with SMTP id j1-20020a170906534100b009a1f21ecdffmr32389946ejo.23.1697471325273; Mon, 16 Oct 2023 08:48:45 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:114:daac:b75d:dedf:26cc]) by smtp.gmail.com with ESMTPSA id jz28-20020a17090775fc00b009b29553b648sm4149918ejc.206.2023.10.16.08.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 08:48:45 -0700 (PDT) Message-ID: <58a6e18b112b4cd8bd9ab66d3f0ff5e77ada8799.camel@cybertec.at> Subject: Re: Requiring recovery.signal or standby.signal when recovering with a backup_label From: Laurenz Albe To: Michael Paquier , David Steele Cc: Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org, zxwsbg12138@gmail.com, david.zhang@highgo.ca Date: Mon, 16 Oct 2023 17:48:43 +0200 In-Reply-To: References: <20230928.125851.2051261991058034791.horikyota.ntt@gmail.com> <4f94351c-24e2-cf32-82d3-1e1bf89a0f5e@pgmasters.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2023-10-16 at 14:54 +0900, Michael Paquier wrote: > Thanks for the review.=C2=A0 Yes, I am wondering if other people would > chime in here.=C2=A0 It doesn't feel like this has gathered enough > opinions. I don't have strong feelings either way. If you have backup_label but no signal file, starting PostgreSQL may succeed (if the WAL with the checkpoint happens to be in pg_wal) or it may fail with an error message. There is no danger of causing damage unless you remove backup_label, right? I cannot think of a use case where you use such a configuration on purpose, and the current error message is more crypric than a plain "you must have a signal file to start from a backup", so perhaps your patch is a good idea. Yours, Laurenz Albe