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 1tuQAG-008KzE-Gw for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 06:11:00 +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 1tuQAE-008Qxi-Ab for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 06:10:58 +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 1tuQAE-008QxY-0A for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 06:10:58 +0000 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tuQAA-003VO7-1Q for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 06:10:57 +0000 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-601f3674116so584707eaf.2 for ; Mon, 17 Mar 2025 23:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742278254; x=1742883054; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KpRSHQIMApc6N7foqGKNj52Ql+X61bNRuYtcOu0Ghzg=; b=Y9RPZu1CzxVWCd/6x/3vS9WrqEiFyrad20iBYxeze51xqbwFDbFmQLaMQNeCtYWqTy ZGAtcZSvSxKM2z6OhUGfpK9G5pOKKGnQ95PDaRSMz8u4uR5aG7svW8wmEGk8y9neE7YF NrwNSx+CSI9AHJMdB8JspPJdbmIOFlXhU+pzWGRlYTxsVKpxlVGMzBnRT8FNJj7I9rD/ xgzC4HL176x0FIuJr5SFCx4aExZM/17PSkNpurl9YUZOtycVx0HKQoTs0mMMfkD564/l iyV6SLZjaxiGQuFIt+FxcQ03FRdzWOXrFTolGwP6ZSaZNM8Lx9m+ld6U+uMbtr0E5RhE bbrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742278254; x=1742883054; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KpRSHQIMApc6N7foqGKNj52Ql+X61bNRuYtcOu0Ghzg=; b=r3Yb5Qd4PxWIOAh794dFi7Viwux4dlBJV2cP3KkrCs8MlH7n3ldxNbQFfUXcmHJD6h eRdsqfd9EoZ7nHiZCz3Wn/DCq3+FiUiyoKWsU/6d9a01azuQW8M3SfRxURCZnJVdACZ5 CQlmz/FXSE3e+Ajxz4EbP+pKBnW1KCo/lgea65padwR+Qa8e8F+5LKbjhSmpBtl21CTF 4nv/hmuk9r/UfQQtexVGTsOSHdgG+RJ3RmSMcQcSZtprf8XNgs1U8jQp4nBpc4K2F6tQ 6xWgb/SC4XkC1tsbnzeEWxZJJJS+8/ycJE0B+uYRqmw6dbPcWCGAep/lIKgzkktbYnxZ DxGg== X-Forwarded-Encrypted: i=1; AJvYcCW4Vrj8VzX0sX+xLLv0FFWYx4CV5TAnXtBqa0HpsAsRAW7ENttNx8HH6PWnAUBSTpGVnf1deuLGYl0oNnft@lists.postgresql.org X-Gm-Message-State: AOJu0YxaA43WEnBwlI48aXSiQ2pRKcsO6JGrk7kXZtyBkBR13dP6E9cD JYvWVYvYAGi+GXyUV7xY+iwo7ACIhC1atIE217IoCkjKHsIHstNnj8rhJGQhBVbKJlx67x+I6qg AirU68fD2lrqR4f7YZ12C6WJPdW0= X-Gm-Gg: ASbGncss6kRYQuHx6/z+Cqm8VyNmbnqhO+/abhCADQlpWI+rcRntvvniKziISeEMhcr w6QWmxDG7vHRY85PyptOtiv0sOP3ZGD+dIhSzm0N9mXFA/Ucv20r+jxCd8gLI/I2UC6PJQwE4M/ q5dS4wsixCbBdSAmqtin8pz9RPmZ1EOP3Kbto= X-Google-Smtp-Source: AGHT+IEFlKqZ/sootzBYTkRWLRDXncU8RPKTkmmSDxAfNJ3wiPlX0b7EsjD1h8HO4e47AxlKRfxhF+UHxD82zafT1uw= X-Received: by 2002:a05:6870:b153:b0:2bc:7007:5145 with SMTP id 586e51a60fabf-2c71a08f300mr1221311fac.9.1742278253686; Mon, 17 Mar 2025 23:10:53 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6802:3a0c:b0:589:13f9:e937 with HTTP; Mon, 17 Mar 2025 23:10:52 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Mon, 17 Mar 2025 23:10:52 -0700 X-Gm-Features: AQ5f1Jo6t-C6j11Eu4rB90UaXEgCU3dITDZtjFWNuNqF9Ofib5zGcLm5mq2Px9Y Message-ID: Subject: Re: pg_recvlogical requires -d but not described on the documentation To: Fujii Masao Cc: "Hayato Kuroda (Fujitsu)" , Ashutosh Bapat , "pgsql-hackers@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000693b48063097c40c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000693b48063097c40c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Monday, March 17, 2025, Fujii Masao wrote: > > On 2025/03/12 14:59, David G. Johnston wrote: > >> On Monday, February 24, 2025, Hayato Kuroda (Fujitsu) < >> kuroda.hayato@fujitsu.com > wrote: >> >> >> OK, so I will exclude the point in the thread. The patch I've posted >> contains all of fixes >> which is required. >> >> >> The patch fixes the synopsis and the mention of the default value. Only >> the later is required. I cannot figure out a policy that would alter th= e >> synopsis in the proposed manner. I=E2=80=99d suggest leaving it alone f= or now and >> tweak any of the option descriptions that may need clarification. >> > > I agree that the synopsis doesn't need to be updated. Attached patch > clarifies > the required options for each action in the documentation. Thought? Will look again tomorrow but seems ok aside from needing an editing pass. The usage section for help probably needs a look as well. > > BTW, I'm curious why --dbname isn't required for the --drop-slot action. > When I ran > pg_recvlogical --drop-slot without --dbname, I got the following error: > > pg_recvlogical: error: could not establish database-specific replicatio= n > connection > That would be a bug. I think this is too: set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_basebackup")); Though I=E2=80=99m not sure what it is doing. David J. --000000000000693b48063097c40c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Monday, March 17, 2025, Fujii Masao <masao.fujii@oss.nttdata.com> wrote:

On 2025/03/12 14:59, David G. Johnston wrote:
On Monday, February 24, 2025, Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com= <mailto:= kuroda.hayato@fujitsu.com>> wrote:


=C2=A0 =C2=A0 OK, so I will exclude the point in the thread. The patch I= 9;ve posted contains all of fixes
=C2=A0 =C2=A0 which is required.


The patch fixes the synopsis and the mention of the default value.=C2=A0 On= ly the later is required.=C2=A0 I cannot figure out a policy that would alt= er the synopsis in the proposed manner.=C2=A0 I=E2=80=99d suggest leaving i= t alone for now and tweak any of the option descriptions that may need clar= ification.

I agree that the synopsis doesn't need to be updated. Attached patch cl= arifies
the required options for each action in the documentation. Thought?

Will look again tomorrow but seems ok aside from n= eeding an editing pass.

The usage section for help= probably needs a look as well.
=C2=A0

BTW, I'm curious why --dbname isn't required for the --drop-slot ac= tion. When I ran
pg_recvlogical --drop-slot without --dbname, I got the following error:

=C2=A0 pg_recvlogical: error: could not establish database-specific replica= tion connection

That would be a bug.

<= div>I think this is too:

set_pglocale_pgservice(ar= gv[0], PG_TEXTDOMAIN("pg_basebackup"));

<= div>Though I=E2=80=99m not sure what it is doing.

= David J.

--000000000000693b48063097c40c--