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 1rYC9B-00Eo8N-3t for pgsql-admin@arkaria.postgresql.org; Thu, 08 Feb 2024 21:41:29 +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 1rYC9A-003aeX-5A for pgsql-admin@arkaria.postgresql.org; Thu, 08 Feb 2024 21:41:28 +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 1rYC99-003aaS-E0 for pgsql-admin@lists.postgresql.org; Thu, 08 Feb 2024 21:41:27 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rYC96-005mJ8-K9 for pgsql-admin@lists.postgresql.org; Thu, 08 Feb 2024 21:41:26 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 585E95F7BB; Thu, 8 Feb 2024 16:41:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snowman.net; s=dkim; t=1707428479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nCcNkaptl+HkIvVRRW764zRiCBbVT1ISYbbRTgG0Oa8=; b=YhavpI1ZV6Q53QtLPL+GTPpK56PKAFF9t3THrVgkOCdZbMtwrStLvColb3HS0aFzwnQK5x 9fsW90mXBcdbzbFJvRTN6cBoPPLIP8nP3gL6HdmnaEQK4zmgpzgXCHQS3TgBOHKqNuKRHR 4HUQlspJ7cCjawba6oCxYudeVfhzGTI= Date: Thu, 8 Feb 2024 16:41:19 -0500 From: Stephen Frost To: Ron Johnson Cc: Pgsql-admin Subject: Re: pg_basebackup --wal-method=fetch Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JaPV4Q8/8gbZimZG" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --JaPV4Q8/8gbZimZG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Ron Johnson (ronljohnsonjr@gmail.com) wrote: > On Thu, Feb 8, 2024 at 12:48=E2=80=AFPM Magnus Hagander wrote: > > On Thu, Feb 8, 2024, 17:05 Ron Johnson wrote: > >> (PG 14, if it matters.) > >> > >> What's the purpose of fetch mode, as opposed to streaming mode? Is it= a > >> legacy of bygone days that just hasn't been deprecated, or is there > >> something I don't understand from reading > >> https://www.postgresql.org/docs/14/app-pgbasebackup.html? > > > > Your backup can go to a single file with it, which it can't do in > > streaming. Which means it can also be sent through a pipe. >=20 > But isn't the whole purpose of pg_basebackup (running it on Node B, when > the database instance is Node A)? Something seems missing from this question? Being able to send through a pipe might allow someone to send directly to a tape device or to a Bacula system or similar. > > It also needs one connection instead of two to the server, if that's > > limited. >=20 > It's 2024, not 2011. Who can't spare an extra connection? Changing max_wal_senders requires a database-wide restart, so.. Not sure where you're going with this though. Are you arguing that fetch mode should be removed? If so, why? If that's not the angle, then what is? Would you suggest some better documentation of the option? I'm sure a proposal to improve the docs would be welcome, if there's something confusing about them and this option. Thanks! Stephen --JaPV4Q8/8gbZimZG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmXFSn8ACgkQ7WyKOINH ZFWweg//e027r1y/KR6zf/4aTilA7MMAViUanSoT0QT6t2McfNS6VC9qvJkeO3nX 3oTFoTYG/9rE9+eS8PErUWuxB54NreFcTcfxJh98+Y3RPsj2ucM7YXpJjzQGKQ12 uPAYoF/cfq+H+Z16hUnwFDOfTRO9lCjwL3LP+t7JKQg1m7Q5XxxZm/jgYHa/6bRf Wtoif1nOJuGHDPSZlX0WnSQ/RGzsPYWOW77eRVhJ+h6QX0J3bp2uVp90RoVA6eoS vjjjtx2aKuzC4ZdTL3D71muN7I7/O5mjpBWonawYiWu1hCcN+uIY0BBDFQB1eiYD Wghy/EEl78zD1n901EEw8ndZzUtBUpjElB4BJ9rhbQrAVeV7gIuU0IGgSq4sXOms RLhANmP2n8QIQfMGSBKZ/FPi45sdlcZZD1Kh02vJH8DRke2bLn3T5Mtb6vh0ky3S /3/8z41J5LSq7n5XJo5+Hb1sbbUvdLBVSDr2EaBUbb0Ac85MVGReu1ep9WYcg14c kH1IPbNtnL1bwPSnRATnDdCQCuTKDdCrco3TF1BavcXika2Ajr2So/JBM1Q4fqfV veAQir4ra7vtyhej52oFWouxMzasHKf9TzF3SlDhi7tATaOTaAi8K9UHfa9xDzwA SZPxjgsmgCT9SzUGgTHyzGMSWilV0OHvKs2Jx+xygyUTpF/vxhc= =DYQ4 -----END PGP SIGNATURE----- --JaPV4Q8/8gbZimZG--