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 1qvvij-008c9b-E1 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Oct 2023 08:28:01 +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 1qvvig-00EXbw-M8 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Oct 2023 08:27:58 +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 1qvvig-00EXbl-9y for pgsql-hackers@lists.postgresql.org; Thu, 26 Oct 2023 08:27:58 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qvvid-002NLX-Gj for pgsql-hackers@lists.postgresql.org; Thu, 26 Oct 2023 08:27:57 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-52bd9ddb741so987694a12.0 for ; Thu, 26 Oct 2023 01:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698308873; x=1698913673; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :subject:cc:to:from:date:sender:message-id:from:to:cc:subject:date :message-id:reply-to; bh=vCy0yDjNZsax1ODgs/X/un7HtviLEOiHRmFbANNxlM0=; b=drZmJHjjX+8BHYDoncU25JA0LpNJYbI3tb5z6mjY+A2qNBTa5ERmHkpoWC4Mi47sCc yEN5Cpn0O4VihBki6J1JFL4obqmGzz7TmoAgK/mhIyRlOhbIGPTNDx3q67Hfo7wrBtPZ T9EfVzIBGTnuVPDxWMK0ym8USI6Re8XNn0BywVqFcfQAkB9AQ08GI9DvE5MW2dL9gnZo p0HKC975N6UO4L2VdruFEpR0oAPO/wSF0nubqQ95G2jZxYf8E31EeC4NB8RkUtK08ISJ eWEUtNiQrdoY4lO1B32zx2K6aExITSrrJ7PlAMeS0hI+4/DomzUr+2pmjvvJjYTp+v0M +zpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698308873; x=1698913673; h=user-agent:in-reply-to:content-disposition:mime-version:references :subject:cc:to:from:date:sender:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vCy0yDjNZsax1ODgs/X/un7HtviLEOiHRmFbANNxlM0=; b=vkyVsFtGpIX+oh4sS4MO76S7ffmdJzV3mf4e2UnQGzK73Zgmkca/y7FmKks0XeTaBP 5SVI2TFcTU/3WmMBBy+Aj0bnAkHQ/NBEau92KO551BkPisSMTXOBM3HCZGuSLwdms9bH wII+VXjRp90RFXzPRLZ5A8WWCgVQN3ab+voncqEx6+y6l4o0ofmnxJfdxdwFgPE805Wj PjEBtqTyjddwjPFOiN2zfuOuOw4XUGOOjJLzoa3h6DwNIliG44JI26VrUlLmjSSVjbYu yBW4oMpRdDW1oRh4slM2Itse7RRnGUolNTvHrhmhhnAA4RY7HFY5F8GocMIPmpCieW/6 07/g== X-Gm-Message-State: AOJu0YxG/BO4Erfx3A3HA5KGGHZMyVyfiQIXQzKSk8hLWjs1Awdn4osH jwnXPCU3mAQDNCZDysnYRL4kYFgQdy0= X-Google-Smtp-Source: AGHT+IGv3v3xzyxJxDsVnL6k+rkF2k8X3wWHTij+X9eHr5XPXmPdVxgW6yH7hfoxA6MTHrIBNeBOAw== X-Received: by 2002:a17:907:96aa:b0:9a2:185b:5375 with SMTP id hd42-20020a17090796aa00b009a2185b5375mr14867522ejc.18.1698308872807; Thu, 26 Oct 2023 01:27:52 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:34cf:1001:f11c:3b32:31b7:711]) by smtp.gmail.com with ESMTPSA id c16-20020a17090620d000b00992e94bcfabsm11163020ejc.167.2023.10.26.01.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 01:27:52 -0700 (PDT) Message-ID: <653a2308.170a0220.361af.f21f@mx.google.com> X-Google-Original-Message-ID: <20231026082630.GV27104@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Sender: Michael Banck Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1qvviZ-00071p-Nm; Thu, 26 Oct 2023 10:27:51 +0200 Date: Thu, 26 Oct 2023 10:27:51 +0200 From: Michael Banck To: Peter Eisentraut Cc: pgsql-hackers@lists.postgresql.org Subject: Re: [patch] pg_basebackup: mention that spread checkpoints are the default in --help References: <6530f954.170a0220.5637c.9209@mx.google.com> <70aea53e-8c02-46a0-a458-e86bd5ca188d@eisentraut.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="oJ71EGRlYNjSvfq7" Content-Disposition: inline In-Reply-To: <70aea53e-8c02-46a0-a458-e86bd5ca188d@eisentraut.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --oJ71EGRlYNjSvfq7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Wed, Oct 25, 2023 at 04:36:41PM +0200, Peter Eisentraut wrote: > On 19.10.23 11:39, Michael Banck wrote: > > Hi, > > > > I believed that spread (not fast) checkpoints are the default in > > pg_basebackup, but noticed that --help does not specify which is which - > > contrary to the reference documentation. > > > > So I propose the small attached patch to clarify that. > > > printf(_(" -c, --checkpoint=fast|spread\n" > >- " set fast or spread checkpointing\n")); > >+ " set fast or spread (default) > checkpointing\n")); > > Could we do like > > -c, --checkpoint=fast|spread > set fast or spread checkpointing > (default: spread) > > This seems to be easier to read. Yeah, we could do that. But then again the question pops up what to do about the other option that mentions defaults (-F) and the others which have a default but it is not spelt out yet (-X, -Z at least) (output is still from v15, additional options have been added since): -F, --format=p|t output format (plain (default), tar) -X, --wal-method=none|fetch|stream include required WAL files with specified method -Z, --compress=0-9 compress tar output with given compression level So, my personal opinion is that we should really document -c because it is quite user-noticable compared to the others. So attached is a new version with just your proposed change for now. Michael --oJ71EGRlYNjSvfq7 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v2-0001-pg_basebackup-Mention-that-spread-checkpoints-are.patch" From 817f71f2eaa8814a30320bc1ef97c1ec8a95f083 Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Thu, 19 Oct 2023 11:37:11 +0200 Subject: [PATCH v2] pg_basebackup: Mention that spread checkpoints are the default in --help --- src/bin/pg_basebackup/pg_basebackup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 1a8cef345d..9957fb4f54 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -408,6 +408,7 @@ usage(void) printf(_("\nGeneral options:\n")); printf(_(" -c, --checkpoint=fast|spread\n" " set fast or spread checkpointing\n")); + " (default: spread)\n")); printf(_(" -C, --create-slot create replication slot\n")); printf(_(" -l, --label=LABEL set backup label\n")); printf(_(" -n, --no-clean do not clean up after errors\n")); -- 2.39.2 --oJ71EGRlYNjSvfq7--