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 1sgAqo-00GDxy-Jw for pgsql-docs@arkaria.postgresql.org; Mon, 19 Aug 2024 22:27:46 +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 1sgAqk-003dIy-Tm for pgsql-docs@arkaria.postgresql.org; Mon, 19 Aug 2024 22:27:43 +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 1sgAqk-003dIn-CQ for pgsql-docs@lists.postgresql.org; Mon, 19 Aug 2024 22:27:42 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sgAqi-000TLZ-2f for pgsql-docs@postgresql.org; Mon, 19 Aug 2024 22:27:41 +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=ZDQS0F1s0yIDoQuKWJlfvOxi+3mmTuQecOJUQgfJjMw=; b=k+CjV kd/AJySEpTZKBxoLtc8I5JjmrznpQgKakf6sQgd7TKRNUuDegjU0NVbVSMHr9sA53FjqQFQWN0ZiK NOwhtO6zu98cGZ4klPVNvXKd8rN5OBpjKlnYGJMxvyBNy0+UsnCYzr1FmrX3SsP6raQcdLPFzSDu6 hmKfsIMhtSHAFP9m0IzPj6dOeoAe+kd6YGidDZS71GPuZXTCg44d0yKd9eDmw9cc11S8ou/d3VCC2 N9/vMthupK5OKS4oiNVZ0oViFTcbp6uQVsumhsK+IelMNj8aMNhcIRKuc5CGefQuvOjGm+bB9+MLp GUB0GAqFSUrcdLi9Bx6TwcikLr0NQ==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1sgAqg-00EaOt-14; Mon, 19 Aug 2024 18:27:38 -0400 Date: Mon, 19 Aug 2024 18:27:38 -0400 From: Bruce Momjian To: Euler Taveira Cc: Masahiko Sawada , PostgreSQL-documentation , Peter Eisentraut Subject: Re: pg_createsubscriber clarification Message-ID: References: <1802dbe8-d136-4ea3-bc31-bffc41b2cd27@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1802dbe8-d136-4ea3-bc31-bffc41b2cd27@app.fastmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thanks, patch applied to PG 17 and master. --------------------------------------------------------------------------- On Tue, Jul 30, 2024 at 06:02:51PM -0300, Euler Taveira wrote: > On Sun, Jul 28, 2024, at 1:17 PM, Masahiko Sawada wrote: > > I think the term "synchronization phase" comes from the description in > "29.8.1. Initial Snapshot" section[1]. > > > Yes. > > > https://www.postgresql.org/docs/17/logical-replication-architecture.html# > LOGICAL-REPLICATION-SNAPSHOT > > How about the following? > > The main difference between the logical replication setup and > pg_createsubscriber is how they synchronize table data. > pg_createsubscriber doesn't copy the initial table data because it > uses the tables with their initial data on the target server. It only > does the synchronization phase, which ensures each table is brought up > to a synchronized state by applying changes using standard logical > replication. > > > I slightly modified your proposal in the attached patch. > > Thoughts? > > > -- > Euler Taveira > EDB https://www.enterprisedb.com/ > > diff --git a/doc/src/sgml/ref/pg_createsubscriber.sgml b/doc/src/sgml/ref/pg_createsubscriber.sgml > index 87a9d3db28e..6ebf918b636 100644 > --- a/doc/src/sgml/ref/pg_createsubscriber.sgml > +++ b/doc/src/sgml/ref/pg_createsubscriber.sgml > @@ -57,9 +57,10 @@ PostgreSQL documentation > > After a successful run, the state of the target server is analogous to a > fresh logical replication setup. The main difference between the logical > - replication setup and pg_createsubscriber is the > - initial data copy. It does only the synchronization phase, which ensures > - each table is brought up to a synchronized state. > + replication setup and pg_createsubscriber is how > + the data synchronization is done. pg_createsubscriber > + does not copy the initial table data. It does only the synchronization phase, > + which ensures each table is brought up to a synchronized state. > > > -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.