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 1rQbYA-002QTP-IU for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Jan 2024 23:11: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 1rQbY9-0064yw-ID for pgsql-hackers@arkaria.postgresql.org; Thu, 18 Jan 2024 23:11:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQbY9-0064yn-8h for pgsql-hackers@lists.postgresql.org; Thu, 18 Jan 2024 23:11:53 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rQbY6-002E50-FR for pgsql-hackers@postgresql.org; Thu, 18 Jan 2024 23:11:52 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2ccae380df2so2411421fa.1 for ; Thu, 18 Jan 2024 15:11:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705619509; x=1706224309; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ja0g7YlRiC2h4aiTa5MvGsqCJGpM00blmSLwzie/8x4=; b=KUj5uGcyuVVy8qJBo90Zma2R7QmYhWmrVdxVOAH7rNovzyHHm/k9dEK295Yk4N9Omv Z/nOHTkkoYJmS9/2PC6TYCobTOMLtJ+ubR9U/vM6yQD4woRyGmzUJPWvdy3WeJQQmkRG yO2IMs15h0oLUpwKl5qWWqi+QlJZzBFQ7ro535hiH9d6yO5OD9RsDZa3tHaXDeiIuqZW Ce2GrmaBFkOeG2hq6U3TNj9X3h8fWpiAP+msz0SxUeJigGcX9EbmrUnX/kh14ubfUcVd D+2hHlwUUu8hHpjbH9QNZ3qxeZGPpcxFDoBpgSBIsw+pJohCl4vO5BxVJqTH66qF4OHu c2UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705619509; x=1706224309; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ja0g7YlRiC2h4aiTa5MvGsqCJGpM00blmSLwzie/8x4=; b=FIE/asnbAXmn4Um63vPNKniCGuab+yIHDqXMwveagQExVvtJhZSiwNWvfaE1n0Mod+ nFvmh7a8ekIyd9zJCV71DMguzfeuNZLeDmhzpKmsJx2jBm6SxL8tfAil+4icgtQM50Nf rT3I7J3efrn/mQyfz7DvdOozdQmWZCa+ODBr6CFDX+GxlpueWIjQ1PZfmxc8PzWwx9lX EibKQoupARj5WpTN8wiR8Uj8ocKjkP02RvDIrErjYyc27mH/XFy8EzPeulSu/WdHC6EJ fpObEYlNYhOKy9cNuiTKlCAv4mVBGw7wg7h81e7Zj2AyRhrAdwm/bmbU9hjqSUCzCOSZ NXBw== X-Gm-Message-State: AOJu0Yw/FAsdlerpUR/B0+rPt0rx4fbtaJBU3GSGBvtagt1FHJgWjMX0 dqvrjThv+X13SlpUyJPm6ouFOh86DL5bVHz2xHhN4e74+9gQlei1bhXn7XXmEXM4GkoHmqutMEq uJ8HZIJEOmVmQey75G1hSzyR2d2aZkIQwBLI= X-Google-Smtp-Source: AGHT+IH6cQQm6u2uKXNOeE81OQc2zFKFFcYlJ1q7ILYGGc7dFEpYX4PIE9r1BBmCD7NVWEUlcTp1ZgfkxoJI4K6bAkM= X-Received: by 2002:a2e:380a:0:b0:2cc:6d87:9a91 with SMTP id f10-20020a2e380a000000b002cc6d879a91mr864363lja.72.1705619508672; Thu, 18 Jan 2024 15:11:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Peter Smith Date: Fri, 19 Jan 2024 10:11:20 +1100 Message-ID: Subject: Re: Synchronizing slots from primary to standby To: "Zhijie Hou (Fujitsu)" Cc: shveta malik , Amit Kapila , Masahiko Sawada , "Drouvot, Bertrand" , Nisha Moond , "Hayato Kuroda (Fujitsu)" , Bharath Rupireddy , Peter Eisentraut , Bruce Momjian , Ashutosh Sharma , Andres Freund , pgsql-hackers , Ajin Cherian , Alvaro Herrera Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jan 9, 2024 at 11:15=E2=80=AFPM Zhijie Hou (Fujitsu) wrote: > > On Tuesday, January 9, 2024 9:17 AM Peter Smith w= rote: > > ... > > > > 2. ALTER_REPLICATION_SLOT ... FAILOVER > > > > + > > + > > + FAILOVER [ > class=3D"parameter">boolean ] > > + > > + > > + If true, the slot is enabled to be synced to the physical > > + standbys so that logical replication can be resumed after fa= ilover. > > + > > + > > + > > + > > > > This syntax says passing the boolean value is optional. So it needs to = be > > specified here in the docs that not passing a value would be the same a= s > > passing the value true. > > The behavior that "not passing a value would be the same as passing the v= alue > true " is due to the rule of defGetBoolean(). And all the options of comm= ands > in this document behave the same in this case, therefore I think we'd bet= ter > add document for it in a general place in a separate patch/thread instead= of > mentioning this in each option's paragraph. > Hi Hou-san, I did as suggested and posted a patch for this in another thread [1]. Please see if it is OK. =3D=3D=3D=3D=3D=3D [1] https://www.postgresql.org/message-id/CAHut%2BPtDWSmW8uiRJF1LfGQJikmo7V= 2jdysLuRmtsanNZc7fNw%40mail.gmail.com Kind Regards, Peter Smith. Fujitsu Australia