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.96) (envelope-from ) id 1w66up-003xiS-0y for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 13:07:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w66un-009lg8-1A for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 13:07:53 +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.96) (envelope-from ) id 1w66um-009lfr-2c for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 13:07:53 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w66uk-00000001Jt8-1VgU for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 13:07:51 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5a0fc5e2c59so2494802e87.1 for ; Fri, 27 Mar 2026 06:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774616869; cv=none; d=google.com; s=arc-20240605; b=fjk8j0WjlHAW4nzYZn69op79ikpwmFctU4ikZW/5F9/cZVBMcOVdkyXegDwKKvZ7x/ aB50wdxi35uuorRoqAyvuC73Zb0vQWXv24jvWiWIyJu0vbueE7D0k3waIgjy33fMNPCw 1HAX2S5v3olkWYbQTixrP1hhjo8YZCcYPY6JCbJLYBpo5odCfPOnJ+Z6BorKTx/kPuOF aaSHgnnyfyc19N7gBz1lPQb+dWFyU0AsiNSML3SCZ04SKJClyGcN9yWW7VXm9t52/B13 6JliWJeGM6d1eMKdGpcvLZXrE6MVWdUVuuaJq+z4k8oR48wvxzJQT+uNT06Ze40an4mf 7GRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=jI0UuOQeBdLKC9LTv6o3iBeUu80PnsQNIPOtymbZ45I=; fh=B0uwn3m8Kn4EaRW1V5WppNnoa3tTL8kzTGFF7AjQfzk=; b=PWG/12EUj6wQvoJlFQ+Q5BgZ55u+yUYRS5dfFV6cEw3/RtgKb+ImjOkD7oqk7DyPde /UhwajLNIfidFyI5E3Svr8K3hPCqVob1FOyi5ZxP+9RicKh8/he7ujuS405hK3hosiVh nVuwBZajmwlIipKzHhpnTFarMo711E3KaXkp0G36mWmbTXdCXg1oNzQNfaxAR8Y59WbV DXoCHbaHmrZpIWKBLPV9S2oGwK5ZQxPUYsd5K81cwrYH0InV8JvtlJlOXVozjyr4tNW5 ASXwos5tRarrCnSCbbUfUDKS2wq/BQVZSjrnbPbYlTvDMlyNzNnB8EbE+kWa3ENdQyVI PdDw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f10-com-br.20230601.gappssmtp.com; s=20230601; t=1774616869; x=1775221669; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jI0UuOQeBdLKC9LTv6o3iBeUu80PnsQNIPOtymbZ45I=; b=1q5tS7SFAWAmdEtIFv4ZrvzJiePRkzkU2olCO1Lt5nlPzlvT+ES0COtF83LN8M0htN xAFZYDb/jTpL9RUP6srWmVDEkomTsQ8v7kwZlB/1b4+Vz5Ckvzs4LShvefjq+BwL9Szv oQLuiWVLLdBSRdmiA92Hn0KMAUMd+xAJ3Knb4QsNl8HT+LtKFQOnUhItZdX0lxV/LnIk akXva1JkoxEz03eLB78xwZij+333WczZF2YhsK7VvX/rUwBOuduTvcRGMGrHt4PeA/Rr yQfAMkoinih+GsQQvy4P5pW5/IQbq5zUEUV6Rms65knRiy/yMR6cNZ74mjEbpp6fcA40 DWPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774616869; x=1775221669; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jI0UuOQeBdLKC9LTv6o3iBeUu80PnsQNIPOtymbZ45I=; b=eptVqFIKBwibzW0dAImbzHJSggk9zdpOtUH0osV4n3nAcW/1q9X6ctKVSvWdPNAoqZ BsVdTChGRKR8/OefOtvNv9tSkyqab8gxuHEw5OJA4bGeqegqSneVzWxxmp57/i9GR0uM hvg/Wn72TyFytfl6FtU9LyFvhHsHnZ/yEbrjxQaMQ6d0t21rN9KoPoRco+0ysrP0sqZ0 4AZYmTYKM6pXGvhcdQBWNbPSEvO9/G1Y+k3kCxqrxxZ+Lb+vOsesdxiEpt8eea36wTre HSegIC//6UwiCaVFgCPa4nPEw3Zc4T5JJfP55GfTyWnxXn9xhwijTxbXAT4Hjhxfa8Vq y5iw== X-Forwarded-Encrypted: i=1; AJvYcCWMnYSBms0zYRA4yh1wNBI1BhPMcpHw3jMJsZpY8kVK0Hc8Xxot9uiYl17JJkuSagAhgxe879ejis8Cn/aO@lists.postgresql.org X-Gm-Message-State: AOJu0YxiOKtrouK093BFLUYqG1pVgf+y+oiVUtUIzpyU4RnxRWmx2bvm DLZ6nU+EkswO9jxLyDLs7iOJeUfRALnU4k2tcyrte8X9QJqXZ0xBcvSVo9BFEdbcNFrNll0hRNh RaLM49r/AMR/64IEtx+3voxW5D6x/vAYSSySDNjjg X-Gm-Gg: ATEYQzwA55pjmFJ7bqANdzdl4bEuvFD0GmdAQHlYc1iBOQUYafFAxp8U1AkmP8qMtlz CcL6aW97Z0pPLrHwLGp+OcmxZg6lIq1g2QD9H5B4XGeR6YoyYAOZIZwKpAkTd7yITqOd8gBBZKd 941GVVg6kVSGWEU8WLUb5FqugJYGJuUdy5NLVe70B/N2dGzn4TwXOslQ1NGiWcCsNkYFyLYO3Ow xxFNcMFA4SKiaxvKYVsVDVlWa1qFw0e4WW+D7tVTTeo0+k1LtBG/lcEOtN9PRoJN/pvbpEIwfQM 5JIFbG45WKrgwz3ocJk= X-Received: by 2002:a05:6512:3a90:b0:5a2:961a:f7d5 with SMTP id 2adb3069b0e04-5a2ab91d3b7mr1074251e87.20.1774616868523; Fri, 27 Mar 2026 06:07:48 -0700 (PDT) MIME-Version: 1.0 References: <0c28fbd1-3320-4e9b-815c-6d62753aa063@wi3ck.info> In-Reply-To: From: Marcos Pegoraro Date: Fri, 27 Mar 2026 10:07:11 -0300 X-Gm-Features: AQROBzB92R8ym--YGjlBIQ634NwrutNVR5t9IJLczNPyZ4OKinUx_EO8q0QM_VI Message-ID: Subject: Re: Initial COPY of Logical Replication is too slow To: Masahiko Sawada Cc: Amit Kapila , "Hayato Kuroda (Fujitsu)" , Jan Wieck , "pgsql-hackers@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000000f9f44064e0130b1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000f9f44064e0130b1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em sex., 27 de mar. de 2026 =C3=A0s 03:20, Masahiko Sawada escreveu: > I've attached the updated patch. I believe I've addressed all comments > I got so far. In addition to that, I've refactored > is_table_publishable_in_publication() and added more regression tests. > Today I had to create a few more schemas and see that problem again, how the publisher is affected, almost crashing due to the overload. That was because max_sync_workers_per_subscription was set to 10, which caused 10 simultaneous connections to call this function immediately after the refresh publication command. Wouldn't it be good to document on this GUC that if your publisher server is running version <=3D 18 then is it advisable to set this GUC to a really low value ? Because ok, version 19 is fine, will be covered, but all publisher servers that are not updated will continue to have this trouble. The publisher will be severely penalized when the subscription refreshes its publication. What do you think, change something on DOCs too ? regards Marcos --0000000000000f9f44064e0130b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Em sex., 27 de mar.= de 2026 =C3=A0s 03:20, Masahiko Sawada <sawada.mshk@gmail.com> escreveu:
I've attached the updated patch. I believe I've addressed all= comments
I got so far. In addition to that, I've refactored
is_table_publishable_in_publication() and added more regression tests.
<= /blockquote>

Today I had to create a f= ew more schemas and see that problem again, how the publisher is affected, = almost crashing due to the overload.=C2=A0
That was = because max_sync_workers_per_subscription was set to 10, which caused 10 si= multaneous connections to call this function immediately after the refresh = publication command.=C2=A0
Wouldn't it be = good to document on this GUC that if your publisher server is running versi= on <=3D 18 then is it advisable to set this GUC to a really low value ?<= /div>
Because ok, version 19 is fine, will be covered, but= all publisher=C2=A0servers that=C2=A0are not updated will continue to have= this trouble.
The publisher will be severely penali= zed when the subscription refreshes its publication.

What do you think, change something on DOCs to= o ?

regards
Marcos
--0000000000000f9f44064e0130b1--