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 1vxzkx-00HKbi-2X for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2026 03:52:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vxzkv-00Fhbc-1K for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2026 03:52:09 +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 1vxzkv-00FhbT-01 for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2026 03:52:09 +0000 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vxzkt-00000000Tbb-33NQ for pgsql-hackers@postgresql.org; Thu, 05 Mar 2026 03:52:08 +0000 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-38a2cc31e20so24220991fa.1 for ; Wed, 04 Mar 2026 19:52:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772682726; cv=none; d=google.com; s=arc-20240605; b=ZwdGv1/9KR/R+z72boDcekNOG9Ts6amFTCPTEFaeBc/LNC7FSSgC2UOksTsUOHA+52 yhFZJYh8eEuK3kvohwx5CjXuk5ze9iD5b3PwaheJrwiDatYRgzYrWjuNbmO8YCwkFeso ncKS+CKvEsF8IDp1uSVsUnmTpRdaIgMROrlSiAxQidGDfZEjveDjTv+SlbccwBTXqs+K Ce5lpYVWiGg9Nkyz0eSbvTho/zo1LdLp+WgAYzEYhHGy6apey0jwVZPm5N6cl+JHsJ87 X72xo8N563A/dgqignwvkTa/spbvR280QoJelte0wptRZXG2mL6nV+hSogTnWEKjkJfm MBWw== 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=Gg9/nS2RWC2C74MO88sSdc3OLSdu9YLy9XEz/ucq+io=; fh=xu6EuRamn0ev+L/3kX0T0vZ9lzLPpENVCA3TEP7IJvA=; b=AnDhCLlIQ8BBU4mt2QqOO0uf6atcTZYG2+CxYkgdRZK6ygxP/QAEaull/l9yqteArI QamUwajFhGL4j6MNBKGuEMoBCVfbYx571fQopUkEYkdejEbFXLPNtkdKnaSEzhek6gaP Iem2pS3FMh+ilc8uEL4yzv6LIQL7QP3efP7Q5GAaK2b6iBms3VBNVpWKfcgQpfC8zPDY /ShQnLyUAo0t4CZPB2+7GXgKoz/Iykm3e+IlCw4PzhUEPKTFEn61RDpURUO13Kv8IWT+ rEWyUoyuesUSNL0lBN++E5SWxLdm2EhP6mjpRTHCqiQ2hbMboD5G0BVCuvBfTnoYwIjh 8ciw==; darn=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=20230601; t=1772682726; x=1773287526; darn=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=Gg9/nS2RWC2C74MO88sSdc3OLSdu9YLy9XEz/ucq+io=; b=gqBThzJhclzayEhYsffpiSlMhmwhIRf7xAScxor4uFU6ZQUfximYVgJQ3l7p6htRdi B4TX/tEf9js67ujqB0mB0RF4VPR/TCsiSDIbaIo2QZLxwcka7T9RsZqpG5IQrwUh1qR6 mfSZ4JujrY+GLCD7WJAM+elTXqSzlNxgkEU09gfrTmobyLKbLnAi4NFRtJrNqnu3x114 pfiJumBnnd1JcrLBayg5NKrWtXYG4XsR7HzTtZKjtqzRxB2mQltZnux0NyBvSTV3tj/q UiKMTSSVWb35wrsGbZEqH58CE9V0YQoZy+woQKg+UDuhqiaIuR/N4agnhLM60JQkz0a3 MVHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772682726; x=1773287526; 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=Gg9/nS2RWC2C74MO88sSdc3OLSdu9YLy9XEz/ucq+io=; b=WIGzb0ktheQtJGjsly4kbzn8iN/hQ616SSm4tqa1HyWW/+inVqjIr7O/rDx82YzlPI eO7//GGmKO837kHu3XFvLE2jx9qCMWYNQ1QKUSpHi/fiRkY9Aq195Xwlk93LpRiBKhdV K8091aIFvtagpQhykkLT/GeFYSCzSjcE4JdeqU1lJMWfocZYOtE1eY/CM1vIRpdSTZzP FxbakKWyhpBFgnHPW4ZjjG1i6zaAR/sK5qTpvEytsKkmSLC/MMkcrlQXN7YsmRopQQgE lwX3/q81YwVoUcogTWPlk6+vBjmzYeHeJ2bUlNXtk1NKcOYwcCw3r+HtvZoyLMDfa9aH esew== X-Forwarded-Encrypted: i=1; AJvYcCWRnG1nKIPmkCHpC8PqKj7cIuiS4joh2mBgXfK7hKcyfjCcZVVF/oS0blGfxKg8aLLqgjUxjxyVoZJPJVyD@postgresql.org X-Gm-Message-State: AOJu0YwVqP39698+mIzOtUkxHQXkIiDslczEGQx8v/rVS1omWpkJOZkI fS5vy2wRYBeUqNQ1/an7s254c30oUpdLiJ8RxnR/C+haV6J0qGQTA/MJzopth5FdVpMDZ6kB0++ GhIyHxNpLVFTWibdAIh4hjJ1Q+7VwxJ4= X-Gm-Gg: ATEYQzxibbQcNVQNGxnvy+lrNOcv4h7XtjDiiInzgTL/jb193xZ13hx9qkhJH6Mhw0S LFNBgv0dwq+8nQnkis+uLX/j8pU2liFdQG0+Us9xkh0RzxW3I2sUN/r3QRiAmcogzt8Ihzfnd34 J06V5d6YMryxTewyH4O9CXjkhzlEpParLAzVDcoMwtR3NS8YN9s6C3kg+SRfjhC/elGZyIGvjMc 2FeT8wxIqCnhhP+MNNF5GyRw7DwZrKrtl0rvPcXTQhYjmSGmrES7Sykbrns2N2X5M5DYtFY+VSD AO9DogegOcwucfJIUKhXt/4m7Oxmo2TAGrsmQpI= X-Received: by 2002:a05:651c:1545:b0:389:ee7b:4d4b with SMTP id 38308e7fff4ca-38a2c577400mr30409131fa.12.1772682725821; Wed, 04 Mar 2026 19:52:05 -0800 (PST) MIME-Version: 1.0 References: <149ff9264db27cdf724b65709fbbaee4bf316835.camel@j-davis.com> <830a2bc6cbbb2e6e01c6c0d9f31f320822e10603.camel@j-davis.com> <433d0845248e86c0317d9d396926182cfe157340.camel@j-davis.com> <05ae37abb207cd6bf6b126780024692d91402b0b.camel@j-davis.com> <93392ffa941ab0d436e19e0ab5d04d0e42c02d3f.camel@j-davis.com> <26be917cb07b6aa3ef5dd15f6b59d1b375ece6e8.camel@j-davis.com> <55201bd916e748acfc754c8f95880dae8e4e5ed0.camel@j-davis.com> <2a89b14a2b1622bffb8b137ca1f9ab7866f2d2b9.camel@j-davis.com> <61831790a0a937038f78ce09f8dd4cef7de7456a.camel@j-davis.com> <0910b47040406c1d24ec0150dafb5bae6b910ed7.camel@j-davis.com> <7338f22c4534322a08ab6ce9f879e2e308eb5e5d.camel@j-davis.com> <34fd5885b8245d1014f4426ea22af61229d42e3e.camel@j-davis.com> <7a5df376fffb273430aec9e89f88c31d52dcf295.camel@j-davis.com> <5dfe845221db2e7d38fc7c2a18a4ba5ea29cdfc0.camel@j-davis.com> <60ff024706fe1beab62a89ac07eb6a721856de2e.camel@j-davis.com> In-Reply-To: From: Amit Kapila Date: Thu, 5 Mar 2026 09:21:53 +0530 X-Gm-Features: AaiRm50QGp2OJn9nhN6HmVlUbc7HY1_024RuItzylE0mKBo4Hs52Zoaku4DmCxI Message-ID: Subject: Re: [19] CREATE SUBSCRIPTION ... SERVER To: Jeff Davis Cc: Masahiko Sawada , Shlok Kyal , Ashutosh Bapat , Bharath Rupireddy , Joe Conway , pgsql-hackers@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 Tue, Mar 3, 2026 at 3:04=E2=80=AFAM Jeff Davis wrote= : > > Attached v18: > I haven't checked the details but while glancing at the patch, I have few observations: 1. @@ -92,9 +92,11 @@ CATALOG(pg_subscription,6100,SubscriptionRelationId) BKI_SHARED_RELATION BKI_ROW * exceeded max_retention_duration, when * defined */ + Oid subserver; /* Set if connecting with server */ + #ifdef CATALOG_VARLEN /* variable-length fields start here */ /* Connection string to the publisher */ - text subconninfo BKI_FORCE_NOT_NULL; + text subconninfo; /* Set if connecting with connection string */ We revoke view rights on subconninfo from the public. See below [A] in system_views.sql. Do we want to do the same for subserver or is it okay for users to see it? I think the following comment and some place in docs needs to be updated. [A] -- All columns of pg_subscription except subconninfo are publicly readable. REVOKE ALL ON pg_subscription FROM public; GRANT SELECT (oid, subdbid, subskiplsn, subname, subowner, subenabled, subbinary, substream, subtwophasestate, subdisableonerr, subpasswordrequired, subrunasowner, subfailover, subretaindeadtuples, submaxretention, subretentionactive, subslotname, subsynccommit, subpublications, suborigin) ON pg_subscription TO public; 2. We may want to update the following text in pg_dump docs about the new way of connecting to hosts. See [B] (When dumping logical replication subscriptions, pg_dump will generate CREATE SUBSCRIPTION commands that use the connect =3D false option, so that restoring the subscription does not make remote connections for creating a replication slot or for initial table copy. That way, the dump can be restored without requiring network access to the remote servers. It is then up to the user to reactivate the subscriptions in a suitable way. If the involved hosts have changed, the connection information might have to be changed.) [B] - https://www.postgresql.org/docs/devel/app-pgdump.html --=20 With Regards, Amit Kapila.