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 1utSey-007flP-SQ for pgsql-docs@arkaria.postgresql.org; Tue, 02 Sep 2025 15:11: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 1utSey-0049Kg-0Y for pgsql-docs@arkaria.postgresql.org; Tue, 02 Sep 2025 15:11:00 +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 1utSex-0049KY-Le for pgsql-docs@lists.postgresql.org; Tue, 02 Sep 2025 15:11:00 +0000 Received: from mail-ua1-x934.google.com ([2607:f8b0:4864:20::934]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1utSeu-000Btr-0b for pgsql-docs@lists.postgresql.org; Tue, 02 Sep 2025 15:10:59 +0000 Received: by mail-ua1-x934.google.com with SMTP id a1e0cc1a2514c-89a079e029bso181149241.1 for ; Tue, 02 Sep 2025 08:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xzilla-net.20230601.gappssmtp.com; s=20230601; t=1756825856; x=1757430656; darn=lists.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=aOUNHi9O1GMSQ6W9bY1NTJb/DSdqifTrL2lQa5tuekk=; b=R8oFnOVirEDKxkkyLj3YxYGJzXzm8Bb0xb5OmKo3uejfpbuprWuAD1llpNxULNXVPT YwwWM2YRkO64R7ix8gK0fQT/I07Zyr4SHGSx1LM5FEkNBFHraUlTDc7bCqlIdQCGqTv+ zI30PcVgadzHq3/Gt7zCfWicJzIa2bb3kgpY2DU1C/d4YpHwzGbWSwCYwtCXmIX1N+83 GZyvYLibELGO8gQ5I09n5DzdVcQjVc5Ahj3fD5VRX+zabr24N5sBLxztZ2eH/tZMnbLI Enu1fiEZ9VgQIigF+FyrzjDM/Eaex0xaA0SIqCLsHcnHNrvuSeB3HJOP1v9UPF14lZDe yzeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756825856; x=1757430656; 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=aOUNHi9O1GMSQ6W9bY1NTJb/DSdqifTrL2lQa5tuekk=; b=gXl1Cqj8LJowMXE3fyd3o+6IfQT2NWgXNMrxi+FYF8xF9F/ndyGxgT2F2oi4fLv0qm nEM6jM5YcnbhTuU+7Che3UK1bRqDFPT7XLQiF0skRoXOdVwjJsIt4qlDf1FvZoUDNLHu li7k6NyTjqzqbZX+g42L26KjO9noC1XikQdF00G28gp4otetQRU5tsk5IkFZysXdI9Qq WyOiG+Hvg5u5K7t//TOHTYeyx7wyTaPl1K8HHNXHbxwAvpwGRKcGQzj3oNEcrEAK/W9v VkKywEEVvdf4ptZvyYOwgSv3BK8gkqRA+l/mVCDq7lZeCS7XfJYR9m6Tj2eGr8oeyGAw rtdQ== X-Forwarded-Encrypted: i=1; AJvYcCUprdsLEEW4Nm3Llw3ea4ycXXHzQKhcxq9Y0mK20v3CY99LaXOhSgxQyZPHH/iyoNA8UEBNwebmXsrC@lists.postgresql.org X-Gm-Message-State: AOJu0YwzVdViLQnzzCf9wTteKJcklwMqm1U4SZ03e7k07ZlPrT8ERYpu aeZNpBnbCBebCHxGkEZacEDtk4NcWXurCptAmCiLbMDMgis65Mo691WVNATkieg6nCvE8qBX2zM t/MewzdO33cMA1sNQh+c9uWQMhOIjiti8WFW8mY8LwA== X-Gm-Gg: ASbGnct56bmAb1c/lZNZA0I4pRzfh2mLbLSWKcxe9tgyD6IJ3utRs7JSg8n/vr3Wtht I2s7uekXVPt6diw5aKGh1GyGczX5SnxbXQ7uCKjigfxNM7WyYr5AHPUTzFjo9Qg6C2n1r5bAsCB Zw6qeAkKD0SOfa2FeNnMfg8ztN13m4q+M8pCCrPpJtkB/cuCDKxuFvSC4j90S2Yyj5aZ+VIJ0Rj ZbV3Wc= X-Google-Smtp-Source: AGHT+IFBcVxqvv/aIdFC+1oHI31LMGSiCOzb6DhxFKHrncnzASBaOfwtQr4ZN5GDkrNJKQDmV6uAucD1t9ssOKYhq5g= X-Received: by 2002:a05:6102:5127:b0:525:df9e:9365 with SMTP id ada2fe7eead31-52b1b4eb9e6mr4037350137.16.1756825855356; Tue, 02 Sep 2025 08:10:55 -0700 (PDT) MIME-Version: 1.0 References: <175578964049.806.14564779365418625473@wrigleys.postgresql.org> <568ff8638e011b2726d06a4b95124ec51ee1e5af.camel@cybertec.at> <93913aeb398b264ca0dc781095d36d6ad2d3be71.camel@cybertec.at> <60948f2ce0f59a8406208e8feabe667f170e8676.camel@cybertec.at> In-Reply-To: <60948f2ce0f59a8406208e8feabe667f170e8676.camel@cybertec.at> From: Robert Treat Date: Tue, 2 Sep 2025 11:10:42 -0400 X-Gm-Features: Ac12FXxDS0LS6SANFwwXWBKagjplRxilS3L3hxFXbGFjNuJ16rwtbFRU83UfVTg Message-ID: Subject: Re: Inaccurate statement about log shipping replication mode To: Laurenz Albe Cc: Artem Gavrilov , Michael Paquier , pgsql-docs@lists.postgresql.org 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, Sep 2, 2025 at 8:48=E2=80=AFAM Laurenz Albe wrote: > > On Tue, 2025-09-02 at 11:22 +0200, Artem Gavrilov wrote: > > My original problem was with the first sentence "It should be noted > > that log shipping is asynchronous". I think your original suggestion > > "It should be noted that by default, log shipping is asynchronous" > > sounds good as it highlights from the beginning that there is some > > variety. > > Hm, yes, we could add "by default". > I think the issue here is that this section is supposed to focus on continuous archiving / file based WAL shipping, which is asynchronous. All of the complexity that is being discussed in this thread is really about WAL streaming, which IMO should not be discussed here. Per the docs, "Record-based log shipping is more granular and streams WAL changes incrementally over a network connection (see Section 26.2.5)." I actually think the thing that is wrong (or at least confusing) in the docs is this line "Directly moving WAL records from one database server to another is typically described as log shipping." because it is too loose with its definition. I don't recall postgres people referring to streaming replication as "wal shipping", that term is pretty exclusively used for continuous archiving. If you look in the aforementioned 26.2.5. Streaming Replication, the term "shipping" is only ever used in conjunction with the phrase "file-based log shipping". So with that said, I would suggest fixing this by changing the first sentence of paragraph 4 to "It should be noted that file based log shipping is asynchronous", as this also emphasizes that this section is focused on file based wal shipping. A larger fix would likely involve reworking this section to start with defining log shipping and how it is used in Postgres, and then continuing with the file based specific info (something like moving the third paragraph to the beginning and then editing things for clarity / readability). I could work up a patch for that if people were interested. Robert Treat https://xzilla.net