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 1szf7X-007KY0-TX for pgsql-docs@arkaria.postgresql.org; Sat, 12 Oct 2024 16:37:35 +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 1szf7V-006n6T-3T for pgsql-docs@arkaria.postgresql.org; Sat, 12 Oct 2024 16:37:33 +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 1szf7U-006n6D-Qk for pgsql-docs@lists.postgresql.org; Sat, 12 Oct 2024 16:37:33 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1szf7O-000hXh-5Y for pgsql-docs@lists.postgresql.org; Sat, 12 Oct 2024 16:37:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=IGqqOcn4Jr31/nBmLWxtwPDNR0lRlXeFrNh/ys5nfCs=; b=NXOpn dcCBqCh+9A75FXaCzCn7+d1C3E6vMMEc4TQhdIgby1GeAsFTEkRuppWgyZDWr/rsb9UfiuPZJe+EV wPhV4JhKizIZlPdVRw0ziMc9QP9ggHwa3touheHIJD5EH3lVlQteUvu/HEyIMNO9jcvyVy48jyg6Q CyOH0TDtH9d4wbx7bEoxKtfl1cSoNWry91Ks0jGXhWZEDuND5Ne+LzpCj6DLsmd9W+hwlkq65cAHu Ai/zk04eZqbQqqx/kxdqnfAvXBhsQmMzRk0w/UgLBbJGpfr4FKQ27ALr9pMp28hmiJNqU5tgbWOi9 /KACji3r4QXM10B4/6uRsod9nasEg==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1szf7L-008Sdc-2P; Sat, 12 Oct 2024 12:37:23 -0400 Date: Sat, 12 Oct 2024 12:37:23 -0400 From: Bruce Momjian To: Laurenz Albe Cc: Paul A Jungwirth , pgsql-docs@lists.postgresql.org Subject: Re: Streaming Replication vs Logical Message-ID: References: <2c392993640661b817c5c779f6aaf44c103510bf.camel@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2c392993640661b817c5c779f6aaf44c103510bf.camel@cybertec.at> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Oct 12, 2024 at 07:01:31AM +0200, Laurenz Albe wrote: > On Fri, 2024-10-11 at 15:53 -0700, Paul A Jungwirth wrote: > > Our docs seem to contrast "streaming replication" to logical, but > > these are not really opposites. Sometimes when they say "streaming" > > they mean "physical". > > > > Probably this is historical: at first physical replication was the > > only kind of streaming we had. > > > > Personally this has caused me a lot of confusion. For example, > > recently when I read "Synchronous replication (see Section 26.2.8) is > > only supported on replication slots used over the streaming > > replication interface," I took it to mean synchronous replication only > > worked for physical replication, not logical. > > What you are saying makes a lot of sense, and improving some of this > is a good thing. > > Our current trminology is a mess. There are some places in the documentation > that speak of physical vs. logical replication, while most places use the > term "streaming replication" for physical replication. I myself consequently > speak of "streaming replication" vs. "logical replication", even though both > stream data. The protocol section of the documentation describes the > "streaming replication protocol" and the "logical streaming replication protocol". > > This is confusing, and I am also sometimes confused in the way you described > above. > > I think the mess is too well established to be really cleaned up. But adding > some clarity is a good thing, so +1. I don't think our current setup is sustainable so I think it does need to be cleaned up. Also, physical/logical replication slots also needs help, I think. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com When a patient asks the doctor, "Am I going to die?", he means "Am I going to die soon?"