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 1rLeUV-009GDY-6P for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jan 2024 07:19:39 +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 1rLeUS-001CoQ-Se for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jan 2024 07:19:36 +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.94.2) (envelope-from ) id 1rLeUS-001CmA-Ih for pgsql-hackers@lists.postgresql.org; Fri, 05 Jan 2024 07:19:36 +0000 Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rLeUP-00FdVR-R3 for pgsql-hackers@postgresql.org; Fri, 05 Jan 2024 07:19:35 +0000 Received: by mail-ua1-x935.google.com with SMTP id a1e0cc1a2514c-7cbebe9ca1dso470146241.2 for ; Thu, 04 Jan 2024 23:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704439172; x=1705043972; 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=u7GM05Tee+q1oHHjoEl/wk6x4+yCfZdxkhCTU+/D6Qo=; b=NIk/OaE+Y9awdbteQiRPsaL+VUv9mCfI06zjcpANbgSiLL/YXj/WkFvS1h6WRhJMCg N8wGxRuA7qz1gZeoYYv7K3BdKr05dD+ykuOxX+RZ9u8pvLGz4k8Vg/MaO+qKFwqR3hFE gxdXCGVC8l5VwlhDiyP8c4pRJixeGRVsgolML9Q6fI2fre4huqLOJlpAhfS/Jo/mz2Yc WXDxvvm7UkJoUAJE02RYMh26aAfAAM/FsTGlCvTbU5kh8gNN9J9jw7AlzHqO/beuWaiX YPqkGEkIcvwoRw+zN3m2MA8tn/5etilODFO1zVVHEgm47pXkh8f7Y1jLAHtzb0XracT0 DeHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704439172; x=1705043972; 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=u7GM05Tee+q1oHHjoEl/wk6x4+yCfZdxkhCTU+/D6Qo=; b=m63yMyeIEcBDpLLDsL4Rqq/jc96rdEa5tbyJRPZJgMbodVucVUyF3yP+MA6nHiu0iQ szVYn4b1iS2ae0QgCsxAY8Pgp3V1A45Oaq8frPV7Ze35lLaPbogzAAK7cF5kF3tkmSUw P/TYitI7iotLQ68wINxMOTcGWvP6kRxiChTvplSdWNx1d3r9/m5CXodJIF6LojxGSCmk lGLruqmfPB3v23t5vQ6TTCc7cEqPIJalyHRGfSzRafaLJzH1ON40Gr85GaC9rfz8scWL ac+AJRfAkl8ijE1r5GVQe0qHQ37/2z4XmVDFgKsZJarXNWkBzhJMhOgIcHDAuGaKochh gXXw== X-Gm-Message-State: AOJu0Yxqjcp51rehW4XifwsRpBFxoMeyfZ/FOOt/CbYadBcIXGhtXkfZ z+AfYyu+j+jUbs49Zmsgz+2FwaCxNGFojMfKY3M= X-Google-Smtp-Source: AGHT+IEK0oBO72XMEhIlAxRgiJX2Y15iqjMPKZGWgLjS/DEz7HT2S3pKZwvN5FCqjR8JDOERjrcmEPC4oXNSLnldiFA= X-Received: by 2002:a05:6102:5e83:b0:467:8814:b403 with SMTP id ij3-20020a0561025e8300b004678814b403mr1438365vsb.61.1704439172155; Thu, 04 Jan 2024 23:19:32 -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> In-Reply-To: <55201bd916e748acfc754c8f95880dae8e4e5ed0.camel@j-davis.com> From: Ashutosh Bapat Date: Fri, 5 Jan 2024 12:49:20 +0530 Message-ID: Subject: Re: [17] CREATE SUBSCRIPTION ... SERVER To: Jeff Davis Cc: 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 Fri, Jan 5, 2024 at 6:26=E2=80=AFAM Jeff Davis wrote= : > > > 2. Can one use {FDW, user_mapping, foreign_server} combo other than > > the built-in pg_connection_fdw? > > Yes, you can use any FDW for which you have USAGE privileges, passes > the validations, and provides enough of the expected fields to form a > connection string. > > There was some discussion on this point already. Initially, I > implemented it with more catalog and grammar support, which improved > error checking, but others objected that the grammar wasn't worth it > and that it was too inflexible. See: > > https://www.postgresql.org/message-id/172273.1693403385%40sss.pgh.pa.us > https://www.postgresql.org/message-id/CAExHW5unvpDv6yMSmqurHP7Du1PqoJFWVx= eK-4YNm5EnoNJiSQ%40mail.gmail.com > Can you please provide an example using postgres_fdw to create a subscription using this patch. I think we should document it in postgres_fdw and add a test for the same. --=20 Best Wishes, Ashutosh Bapat