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 1qtPVJ-00CIul-6n for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Oct 2023 09:39:45 +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 1qtPVG-00GbY1-34 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Oct 2023 09:39:42 +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 1qtPVF-00GbXr-PN for pgsql-hackers@lists.postgresql.org; Thu, 19 Oct 2023 09:39:42 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qtPV7-001WFx-V9 for pgsql-hackers@lists.postgresql.org; Thu, 19 Oct 2023 09:39:41 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-53e3e7e478bso10212731a12.0 for ; Thu, 19 Oct 2023 02:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697708374; x=1698313174; darn=lists.postgresql.org; h=user-agent:content-disposition:mime-version:subject:to:from:date :sender:message-id:from:to:cc:subject:date:message-id:reply-to; bh=NoLEt07NIyIAPxRlDgAzemmQmN9SGKaGfTx/IqEQEvM=; b=i5yH1nvTlPam8a1KOy/6BAKegHb4P64C2FExPiRnG7Ae+OvDx6T2FHyUfozgwoy/d/ mcOy1tff/EHtz0WJLClre6bxVTu90Vk02KxXftMorvc474tEdGrFvoz+Z8cY/UucdHBN w7PF1cEHrJHV8fUbM9plIZgUoIUeBVvche2aDdxIZCMis6JgMtOk84d+RpeLzNj2S8fM at8EQeAfzSJkyXQIAs/9INdQzZD9HVhH6Mi4/Gk0+qhw8RozTNvsscAuY/QkfHk2kpd0 tCZ4/R3UoHlbKwdOK9ui+j7vdwwa07wfXRVZ1vjGmh35shB2UiZZl/OubfyCHoWtCB3s 83Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697708374; x=1698313174; h=user-agent:content-disposition:mime-version:subject:to:from:date :sender:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NoLEt07NIyIAPxRlDgAzemmQmN9SGKaGfTx/IqEQEvM=; b=HUAZ3jJVbjUoAwt1NHUazCsSlH0qUbAPSm5ha3DtfofsCzdd4oJ+sxC/UOvVscmF1w uoCtm1w+twFh9iIcuWcg66DtyMMLRlAoMz2fWNz6l7mR9aiEDS6KfIw5rtLkj8ZIFQLJ qk1SJUuXvdSP9U5+Ru6TmmllLrmdWaXQz8ynJGgmEd2E8Ft41ukTHsIoqsd3F5M22xXt s1wrrdTbe40QwKeRIlOYWQeiYNWTNR6CjV/71myzkYrUCBAANq4MeUYVI1QAzp612lq9 wZGoP+jINmXsWhiI0isWifS014BkmXQlUBBGj6vs4W35ysC0tLV9v+paPXrDaxNvsDV7 2dfw== X-Gm-Message-State: AOJu0YwUWRn40FEUN/QwkOB7iyzGwQDVOXsntJXwecGZ/oWmNKV17hB4 AWKFfhuseT6aiKT7VYY5QbysYDWx524= X-Google-Smtp-Source: AGHT+IGD2rDgrjHFLDPapkbBicHnywn6mvotJ8gweCg9tYrU5/zLxNRflKcg1tKyuZlFaRKCGjSyBg== X-Received: by 2002:a17:907:980c:b0:9a5:7759:19c0 with SMTP id ji12-20020a170907980c00b009a5775919c0mr1563605ejc.64.1697708373596; Thu, 19 Oct 2023 02:39:33 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:34cf:1001:f11c:3b32:31b7:711]) by smtp.gmail.com with ESMTPSA id b7-20020a170906660700b009a5f1d1564dsm3125593ejp.126.2023.10.19.02.39.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 02:39:32 -0700 (PDT) Message-ID: <6530f954.170a0220.5637c.9209@mx.google.com> X-Google-Original-Message-ID: <20231019093931.GB29516@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 1qtPV6-0000d9-19 for pgsql-hackers@lists.postgresql.org; Thu, 19 Oct 2023 11:39:32 +0200 Date: Thu, 19 Oct 2023 11:39:32 +0200 From: Michael Banck To: pgsql-hackers@lists.postgresql.org Subject: [patch] pg_basebackup: mention that spread checkpoints are the default in --help MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline 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 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. Michael --M9NhX3UHpAaciwkO Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-pg_basebackup-Mention-that-spread-checkpoints-are-th.patch" From 2fc49eae5ccc82e144c3f683689757e014e331bd Mon Sep 17 00:00:00 2001 From: Michael Banck Date: Thu, 19 Oct 2023 11:37:11 +0200 Subject: [PATCH] pg_basebackup: Mention that spread checkpoints are the default in --help --- src/bin/pg_basebackup/pg_basebackup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 1a8cef345d..f2cf38a773 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -407,7 +407,7 @@ usage(void) printf(_(" -Z, --compress=none do not compress tar output\n")); printf(_("\nGeneral options:\n")); printf(_(" -c, --checkpoint=fast|spread\n" - " set fast or spread checkpointing\n")); + " set fast or spread (default) checkpointing\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 --M9NhX3UHpAaciwkO--