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 1w56lH-002txS-0H for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Mar 2026 18:45: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 1w56lF-008UrQ-19 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Mar 2026 18:45: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 1w56lF-008UrI-0F for pgsql-hackers@lists.postgresql.org; Tue, 24 Mar 2026 18:45:53 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w56lD-00000000prs-3H8Y for pgsql-hackers@lists.postgresql.org; Tue, 24 Mar 2026 18:45:52 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5a27a2fc113so1474111e87.1 for ; Tue, 24 Mar 2026 11:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774377950; cv=none; d=google.com; s=arc-20240605; b=LAgwnfgLepH2HknRep/P0zxJFgkyAJs+psuMGcLH0q9qbfwBi0rPOhL451c7URIGao a+SOzT5KN1fNv1ZWu2Z2bKoMVgFhu1G48SDqMDQbxRuV2hmWp4B3aaD+9ndL0fGuvwO9 KNj0jO+mYZtkso7jT+qIqWe0iiLHWSZEAfAK0jcjQtp9EQWdVsJM/2NBqQkZv5TsF10U /ezCfpklJdKdaCmjGbPYXNSKRJuWcHfTwiJguYgBonmwmNgccx3RwTNfxNYUnhPzyLcw vZQ/DSnqlCtD2A9AiIZSP+dkepHzlxAQeA901MgkHbnw5TuEbOnR5ePjPB0kcdkTahhI gF8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8V/ZBJEQH8cn9gVjfLgH/DD3tOhB+5rH0b1OT/FsLfE=; fh=p9fRvq0Oe66DEEqqTp35lkHjTlWvHbguCov5revC08Q=; b=i/Joi4plM2hrVOBzlMD65adqZOrfUhJ3XLsKy0Z4g4JEm3dZCJVFPwy4RILfhNvd3f KHdrWdHHIQp86DHMDLNe7/t5g+uHaEsDQJM6xNuyYRIA3ddG1VvboHVhF8AeqCuPYtS9 Fhn9q/NZSPlIox/gT+PjaEivbuO0VmIJoWKohaUHPRaUzADZOHawvTao5NQHIuxNStEd gvTsB1zMuoaa6R3/f6zgocBXZKE+jzZzQ3nghMsnWgzofEsPH4NTcfxlFfcyVRK8TE0P ZgOuzBCXhFm+bPBhjAKOUFHWmdX3uLZFozkY7Vlm5iJj3Mr2QT1rzuZODfDSKA3V3Gh+ uzPw==; 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=gmail.com; s=20251104; t=1774377950; x=1774982750; 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=8V/ZBJEQH8cn9gVjfLgH/DD3tOhB+5rH0b1OT/FsLfE=; b=ZclrhwArTe89Bof2uxRyD8E1prodWXo5ckvBIXd9w3y0a8YgFMlR01E+Z0DPslYEEA JCy5TqtT7PRel9gc2cC6RtKh53m3tM+N78aahlAxB+zefVtIOK5Ja8FTDGNLhDU3ilQp bHHovNZw5QUnh59sRPYWrd9v7nfMUTDR45ZoZ5BZ0GPhgsQkacACrWkgzGul9Hjtmfpg OTZPVYOs8Q8tiu2UR0nVbIK4GMoRCvqklTSkN1oonqh+IqVTLJ4qfOpqUO9zhpjL7eWc besaAS8y16X0qlsrTEGpYlUab2vWfVQ4XziHnLN7AYcX8m0w2lxaEZubTLzpEFTcLceb mB2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774377950; x=1774982750; h=content-transfer-encoding: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=8V/ZBJEQH8cn9gVjfLgH/DD3tOhB+5rH0b1OT/FsLfE=; b=PhHAKmlVqxBT29TGVj3+OtHBPr0+dnVDfTbiPKLw8HeuoAZCtGXzl/WgD70Qqb1Cef RCCGTu7IW5LwZ23aMcA0CBhGPC8a3kwyVYHXPwtY6CyP708tAq41MlE5rX2LZE/8X5MS e9TXUC/qQg2d9QjtH3QKpTgINwBLod15gm86mkSINB92TzHqnzOobd908ngjqV8gzByM NJxNiWCUZ9fU2E614ZDb4kenoI5KQeOSTgo3UzdgtpI/4kwCHX8XRGJHLgX13rZc6lsg WKiAlEhUmF94I8N3Cv0RcqtM1OC45vbbuOzdKTPQn+RQA4tF40XPGHfAllws73Qh9wPh GByg== X-Forwarded-Encrypted: i=1; AJvYcCVyNBRztuacvtmsbyhz2cat1DnDS+grCzGo+aiM8BQUrh6cK1UHLF3VPLFprQQS1z3Z3FDl0uCc5QVauvoy@lists.postgresql.org X-Gm-Message-State: AOJu0Yx/XT4zeWAAKJPkSEWpxXNs/DdS4cAG5+NZnQv/ZJSGyYOT3E0G JWLzIXMPgx9OnoRnhSFoVlbR6qt1cOr4O86Alc4t0HiSTE8ilBrlG7faIL1n7PvvHmbTybLWtJz A5o5nk5DOoeFVHzyuhIyOmBcygKjn9rA= X-Gm-Gg: ATEYQzw12FQS1vl1dlGeV0CEyiHseJj0eSvFWz2BDkW95v0Br6u3IFdEDDDyUBJN4G4 1DMgl8kaEiOIys+cr+5Tsdvwt857QYm9mUD/5EFeM69F3sU5QjRO09lvvO/ryFlLRRXi/nvVVDg qccjMG3AkW7J5fZzp+c73dw1kqwvRzmDhQunFnh7nd/JRCZk5KwlZzQUZWmY/r74yAFpBBvPSMp c12nbYWWIpWWDsOFi224SHZI7K4BiBtE4bNxTrO07vQlDr5YKtedhyiLGCKH/Si/m6azb6RRIXR GQignDPAS++vNXTMNZGrbNM+NeLZa8IK3QJ4Ag== X-Received: by 2002:a05:6512:39cc:b0:5a2:7f4b:8e87 with SMTP id 2adb3069b0e04-5a29b97d9cfmr233145e87.3.1774377950096; Tue, 24 Mar 2026 11:45:50 -0700 (PDT) MIME-Version: 1.0 References: <0c28fbd1-3320-4e9b-815c-6d62753aa063@wi3ck.info> In-Reply-To: From: Masahiko Sawada Date: Tue, 24 Mar 2026 11:45:13 -0700 X-Gm-Features: AQROBzBJFbEy8VGI2mcUklNNktrdvHTpyS5u5iDaoX7zSagmkGkqb7im6_c7e30 Message-ID: Subject: Re: Initial COPY of Logical Replication is too slow To: Peter Smith Cc: Jan Wieck , pgsql-hackers@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 Mon, Mar 23, 2026 at 11:59=E2=80=AFPM Peter Smith wrote: > > Hi Sawada-San. > > Here are some review comments for the v3-0001 test code. Thank you for reviewing the patch! > > =3D=3D=3D=3D=3D=3D > src/test/regress/expected/publication.out > > 1. > +-- Clean up > +DROP FUNCTION test_gpt(text[], relname); > +ERROR: type "relname" does not exist > > This seems a mistake. If the DROP FUNCTION was differently written > there there would be no error. PSA. Fixed. > > =3D=3D=3D=3D=3D=3D > src/test/regress/sql/publication.sql > > 2. > +SELECT * FROM test_gpt('pub_normal', 'tbl_normal'); > +SELECT * FROM test_gpt('pub_schema', 'tbl_normal'); -- no result > > These tests seem strangely different from all the others because > everything else has both a "good result" test and a "no result" test > for every publication. > > So I think there should be a "no result" test for 'pub_normal' > > So I think there should be a "good result" test for 'pub_schema' Added. > > ~~~ > > 3. > Consider renaming that 'tbl_parent' to something like 'tbl_root'. > because 'parent' always makes me think of INHERITED parent/child > tables, rather than partitioned tables and their partitions. If you do > this, then you might also want to tweak several publication names -- > e.g. 'pub_part_parent' -> 'pub_part_root' Hmm, there are already some queries using 'parent' in the same .sql file. I'll leave these names. Regards, --=20 Masahiko Sawada Amazon Web Services: https://aws.amazon.com