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 1qbaF8-00CSA0-Rr for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Aug 2023 05:29:22 +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 1qbaF6-004AuR-Fk for pgsql-hackers@arkaria.postgresql.org; Thu, 31 Aug 2023 05:29:20 +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 1qbaF6-004Au0-5P for pgsql-hackers@lists.postgresql.org; Thu, 31 Aug 2023 05:29:19 +0000 Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qbaF3-001uWp-4Q for pgsql-hackers@postgresql.org; Thu, 31 Aug 2023 05:29:18 +0000 Received: by mail-vs1-xe2e.google.com with SMTP id ada2fe7eead31-44d526f96fcso258256137.1 for ; Wed, 30 Aug 2023 22:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693459755; x=1694064555; 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=9D8hFSQ9UWa3rEMe/cVICe5J8VHlQDx1gl0sFez79pM=; b=TbvVOW7KoIOaRAIK/VMmR1sxkslUVTNUQxE4VcQubyJxI/b1xzonv06DlbF5m4ZHq1 RWRoslJHZZV44kpFi5T+Fyi53ylYqeIanly6mSwqeKXirkmhjQ4sEX7gHhHeyp2DyuNP zjMxe9xLIN4yWw8bn0Z38zcSzeTNYfWAMHcmy7pMY8w1spITO7jUHyrzaRB1ZPy+V48U D/5D0NFi2V3I/50F5UMikk16FswGd1r8XWgltZMtVRAOP7ZJeUSMFPRPKv1MGtMqDrxK pHFWkGmkDkTBQCq2SKc/f3N8M8CjTHherW0Fd9hY3CRxMxPm1VmavNJ8v7NHu6nECr8U HdKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693459755; x=1694064555; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9D8hFSQ9UWa3rEMe/cVICe5J8VHlQDx1gl0sFez79pM=; b=hPcDXYx6iHp5QRRDXGRLFPoSFwQS0fPGMd/4CoECfZHVGaLDX3osu16q7Iq/ZW/90A fl3EOYqZcf0wzYtv5ZUSowZItpV+1d5o/9tBOJ04/d5FfTeDuSyD1APmof5EWst7QDUZ JxiSSgDhbe1/GuWi5S604kGujo5KE21NivBt9wKGLcuOSJ8YgefCo1+HoA4wE6uXi7MT Pktfh0WDESVXtN5X5ovYFTr8lulrrDbCTtiOESF/6SOI5uUrTqnMr9Y3hLlxUKf5NOhj QP5skhnBfPO9INFxjm2ey6IT+/DM0EHHnykdkaitnl3zkua3/nNuUcBhuk2QU8UlpkYg UlNg== X-Gm-Message-State: AOJu0YzVXyoIEjd1CEW7cB7A5etJcfzPkf5zSeGGG+DJ0dWOCbhNgMMI XsI90rNbFprIr7cx2kJb+D22SNXTueHggSi7VBH0AY3w X-Google-Smtp-Source: AGHT+IFbKQ6eHEDrDWvxY7Ce0IEAWaAY7m4jZ/NCHb1VcY+adrr7umzveyFFW7K7LKGxRmL47JfaUl/DkV+afu160Nw= X-Received: by 2002:a05:6102:300c:b0:44e:9219:136c with SMTP id s12-20020a056102300c00b0044e9219136cmr3716785vsa.15.1693459755647; Wed, 30 Aug 2023 22:29:15 -0700 (PDT) MIME-Version: 1.0 References: <149ff9264db27cdf724b65709fbbaee4bf316835.camel@j-davis.com> <830a2bc6cbbb2e6e01c6c0d9f31f320822e10603.camel@j-davis.com> In-Reply-To: <830a2bc6cbbb2e6e01c6c0d9f31f320822e10603.camel@j-davis.com> From: Ashutosh Bapat Date: Thu, 31 Aug 2023 10:59:03 +0530 Message-ID: Subject: Re: [17] CREATE SUBSCRIPTION ... SERVER To: Jeff Davis Cc: 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 Wed, Aug 30, 2023 at 9:00=E2=80=AFPM Jeff Davis wrot= e: > > On Wed, 2023-08-30 at 19:11 +0530, Ashutosh Bapat wrote: > > Are you suggesting that SERVERs created with FDW can not be used as > > publishers? > > Correct. Without that, how would the subscription know that the FDW > contains valid postgres connection information? I suppose it could > create a connection string out of the options itself and do another > round of validation, is that what you had in mind? The server's FDW has to be postgres_fdw. So we have to handle the awkward dependency between core and postgres_fdw (an extension). The connection string should be created from options itself. A special user mapping for replication may be used. That's how I see it at a high level. --=20 Best Wishes, Ashutosh Bapat