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 1sYu0S-00EwNQ-0a for pgsql-docs@arkaria.postgresql.org; Tue, 30 Jul 2024 21:03:40 +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 1sYu0Q-00Dd1I-20 for pgsql-docs@arkaria.postgresql.org; Tue, 30 Jul 2024 21:03:38 +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 1sYu0N-00Dd13-Qj for pgsql-docs@lists.postgresql.org; Tue, 30 Jul 2024 21:03:37 +0000 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sYu0J-002GbF-79 for pgsql-docs@postgresql.org; Tue, 30 Jul 2024 21:03:33 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4BC96114030B; Tue, 30 Jul 2024 17:03:29 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute4.internal (MEProxy); Tue, 30 Jul 2024 17:03:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1722373409; x=1722459809; bh=7VqrOMDYKV FgRTXgF/pmzA//JEI0QhXX45Lr8nR9rNE=; b=Wqy7iRWx8DtlETYD0aqNvLQXOP YFBVrFBNygd6KRxVXLL+YyrCRlHYdSP/fgnbe61plqLJf3U0bF38g0ar17wKfsn0 jFuVj13xJmJgIHaU5NWV3zymwP2c4WLATNrWRN3Uefq1wIlfPL4ciBKzY+1yyLaf G1M0JZ/BM1i1TOSQXyK5HUvbcDzIhef197PE+rzGbFVhLvxbnHPPKtnDC4JXNiEm oadM/3dJcaIksLz3Lcy0z84ZGK+LdDvHvDmZQXDdF1D/XCe53cN8rRuv3/X1/pL2 qOF/l4nWnoe2+4DrIOLUMcvupK/sFD967yANmm0tb7GjKP3/yCdy3/XTStWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722373409; x=1722459809; bh=7VqrOMDYKVFgRTXgF/pmzA//JEI0 QhXX45Lr8nR9rNE=; b=UdI2RNUVRJzqwSyFc6S083jfTKiN5uX+a7pjuVasuSLN 5Wl4zoH9wBoKalJtBpa6rFYlhNAyrzzwNrc2m0uNG5ktP0QB8PVLiEo1EagpAi6z TRCvCXaIIPIxij3PUNZYegwTKuBLN/BO32326lt9/VwCZr0P2uXm49FV1BHOGvkE CrgsaZPc/XiEeTa7VsR0cGPjS7YXqAMH83oggOM/+p5ZXIc9W/cat/rIq7iOQ+YP s0OM3Lo4nQDIvRPvw5uP7giKv+xIzux18LRUjsV+EgVlkWgGNAqcM6mJTcTOKhmp Q4h3N0jXL7cIL5bgnsky1P/r4BAXk71FmrNZM0A0YA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeeggdduheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofggfffhvfevkfgjfhfutgesmhdtreerredttdenucfhrhhomhepfdfguhhl vghrucfvrghvvghirhgrfdcuoegvuhhlvghrsegvuhhlvghrthhordgtohhmqeenucggtf frrghtthgvrhhnpeevhfevvdetkedvvdevgeevhfegtdetudehvdehfffgueeluefgveel iefgveevtdenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegvuhhlvghrsegvuhhlvghrthhordgtohhmpdhnsggprhgtphhtthhope dt X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7948B15A0092; Tue, 30 Jul 2024 17:03:28 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Tue, 30 Jul 2024 18:02:51 -0300 From: "Euler Taveira" To: "Masahiko Sawada" , "Bruce Momjian" Cc: PostgreSQL-documentation , "Peter Eisentraut" Message-Id: <1802dbe8-d136-4ea3-bc31-bffc41b2cd27@app.fastmail.com> In-Reply-To: References: Subject: Re: pg_createsubscriber clarification Content-Type: multipart/mixed; boundary=756147858f7b40899293d40737b9fb91 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --756147858f7b40899293d40737b9fb91 Content-Type: multipart/alternative; boundary=183911b403c245268f331bbd400ed497 --183911b403c245268f331bbd400ed497 Content-Type: text/plain Content-Transfer-Encoding: 7bit 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/ --183911b403c245268f331bbd400ed497 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
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" s= ection[1].

Yes.

=
<= div>
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 ea= ch table is brought up
to a synchronized state by applying= changes using standard logical
replication.

I slightly modified your proposal in the at= tached patch.

Thoughts?


--
=
Euler Taveira

--183911b403c245268f331bbd400ed497-- --756147858f7b40899293d40737b9fb91 Content-Disposition: attachment; filename="doc.patch" Content-Type: text/x-patch; name="doc.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9yZWYvcGdfY3JlYXRlc3Vic2NyaWJlci5zZ21s IGIvZG9jL3NyYy9zZ21sL3JlZi9wZ19jcmVhdGVzdWJzY3JpYmVyLnNnbWwKaW5kZXggODdh OWQzZGIyOGUuLjZlYmY5MThiNjM2IDEwMDY0NAotLS0gYS9kb2Mvc3JjL3NnbWwvcmVmL3Bn X2NyZWF0ZXN1YnNjcmliZXIuc2dtbAorKysgYi9kb2Mvc3JjL3NnbWwvcmVmL3BnX2NyZWF0 ZXN1YnNjcmliZXIuc2dtbApAQCAtNTcsOSArNTcsMTAgQEAgUG9zdGdyZVNRTCBkb2N1bWVu dGF0aW9uCiAgIDxwYXJhPgogICAgQWZ0ZXIgYSBzdWNjZXNzZnVsIHJ1biwgdGhlIHN0YXRl IG9mIHRoZSB0YXJnZXQgc2VydmVyIGlzIGFuYWxvZ291cyB0byBhCiAgICBmcmVzaCBsb2dp Y2FsIHJlcGxpY2F0aW9uIHNldHVwLiAgVGhlIG1haW4gZGlmZmVyZW5jZSBiZXR3ZWVuIHRo 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