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 1vMcTj-00Ess6-0v for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Nov 2025 01:31: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 1vMcTf-00AWz1-1M for pgsql-hackers@arkaria.postgresql.org; Sat, 22 Nov 2025 01:31:51 +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.96) (envelope-from ) id 1vMcTf-00AWyt-0Q for pgsql-hackers@lists.postgresql.org; Sat, 22 Nov 2025 01:31:51 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vMcTd-000ok9-12 for pgsql-hackers@lists.postgresql.org; Sat, 22 Nov 2025 01:31:51 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-2953e415b27so31085335ad.2 for ; Fri, 21 Nov 2025 17:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763775106; x=1764379906; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=D8fcN8K6Mp44ZO8xUbfJoKNB8rJwalrVd56UIuLT7s4=; b=R4PXEsvnVle2ujqp+0hdwPo9XR/71cx4TsMHql9wCoquVLX85GvMb6ETgpWcSCpXFf tfhxe2YA4k8LdJGdeYL6RnPt8c6KPE7+jWZXKrCt6D651OHALgS9qXmqDdFsvs2CtBNf eZiCwNAKSNsbwC8s96HgDU6r/KdtwVB6s/nzbR8XY4kjrocI680BUqT0drLxsX8hLEWz Os4YLlA4/8TS8fr8pYNgoIp4l42hOuR+QhzDud3Z24C7pLDTo1dJ+OvPj9xr7AITEIOV 3rKk1tB5yWfyfsClggfkAXByJ/Ji62NfgSFi/eQ/6+ov3n3BgMMHuYyTDntDky+3D5Nj pXMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763775106; x=1764379906; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=D8fcN8K6Mp44ZO8xUbfJoKNB8rJwalrVd56UIuLT7s4=; b=IbmbaOW+I7II8js5daKdaoc8TL8Thr210yphSi3qMK0SkQvgYRiQ9Q9tejdEqLyaMb 0A2rV1xVp06M/AiqkKeJEQxc55fTVpbiJtZ2ypUT3dyIwBGg/jrRt4epPLEGUCCPnosx 0Rw3+hPz/iLob/xYK+VbJLwfEsaBY7rOufYwSkUInVoOvOVMalErksrcS2lNGkkTnskj lYIxZe9hJ2CIY6rbGFmscsZrblzwYVajyUfxKBh08R6nS8qOTv2vDirm6xjmWBYjcccy hchAumw1f7wu3Mc9oy+2KInTaCS+RoXcfAZsTapsANrCq7rwpVh7EvHUdNUXqgqqq5ox x0cg== X-Gm-Message-State: AOJu0Yw9gI9bIUHRDMOUnfDhJ0C487KIVOGgy+jA2iC9KQZCYGj0a68N gFi0qcn0jWMyzgSg5JseqSa8UPyjusJpQC/yTtAUuse6/U5k4egxQ+3D X-Gm-Gg: ASbGnctHGreKJE3AdNpOcejIYUMEhkwHdWmusZk/LDbWSHGIF9ZOeQzxknV1VDmmBYW pi0I4OOHVaX5xYeauExPf2FL1phpft01P+Op9QLrIcWm1eIXS3wMxbeDDQ6HLYOvNx35fMXFpUX 1rTdNn3ARSReggNBgYot/7d+gfid/LShdGG+WNFOt0OuYeB88nIKvxMWv5zgVTgVFSyfndQeem+ aaAZprUcMsvsDsF/Mm3bPGYFpkUpR+DF842uGnkcHMRNYDZ4SdrcXP14/FSn1BsBIXPRsKFEweq lHVFCoaKgryVFessLy3SMi04CKATBUfsvr+KvCeRptoZQBRGB/vZlj6Bft9TYUb1nbeY6vPyBJD M8hHkXpX8ieyROzzwLmWSXCJdCFwqP1WMWjBCTKB2Qpbotv2Fwq5NH5labRLj2VUm5J3Rr9JfaE 7OJb5cY5VfEMnUCI3zgS0= X-Google-Smtp-Source: AGHT+IHFQYv/PoHI85e9WNVS/b7HWgHHzHx5elnkR9osyRT5Nrornv0M8/34WTapxTm6SnqvWzxVGA== X-Received: by 2002:a17:902:e950:b0:295:96bc:8699 with SMTP id d9443c01a7336-29b6bea56bamr59344905ad.20.1763775105930; Fri, 21 Nov 2025 17:31:45 -0800 (PST) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-29b5b25e0f0sm66935605ad.46.2025.11.21.17.31.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Nov 2025 17:31:45 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Allow GUC settings in CREATE SUBSCRIPTION CONNECTION to take effect From: Chao Li In-Reply-To: Date: Sat, 22 Nov 2025 09:31:06 +0800 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <726A237D-D1C1-49E5-99A0-AC5899897DA6@gmail.com> References: <6E35E0EF-A842-408A-A264-DB6D428C2BD6@gmail.com> To: Fujii Masao X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Nov 22, 2025, at 00:14, Fujii Masao wrote: >=20 > On Fri, Nov 21, 2025 at 6:24=E2=80=AFPM Chao Li = wrote: >> No, what I was thinking is that, we could combine the three set = statement into one, like: >>=20 >> ``` >> Set a =3D 1; set b =3D 2; set c =3D 3; >> ``` >> So that sends a single statement to publisher server, that reduces = round-trip from 3 times to one time. >=20 > I see the point about combining the three SET commands to reduce round = trips, > but I think the current approach in the patch (i.e., issuing a = separate > SET command for each parameter) is sufficient. I still don't think > the additional round trip during replication connection startup is > a real concern. This approach is also consistent with what = postgres_fdw > and pg_dump already do. >=20 No problem. I don=E2=80=99t have a strong option here. I just saw you = mentioned overhead of round trip and thought to improve. But I agree = that overhead is tiny, not a real concern. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/