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 1qbLSb-00BmCL-7y for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Aug 2023 13:42:17 +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 1qbLSZ-00HDDm-RD for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Aug 2023 13:42:15 +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 1qbLSZ-00HDDX-Gi for pgsql-hackers@lists.postgresql.org; Wed, 30 Aug 2023 13:42:15 +0000 Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qbLSW-001wTR-CY for pgsql-hackers@postgresql.org; Wed, 30 Aug 2023 13:42:14 +0000 Received: by mail-vs1-xe2c.google.com with SMTP id ada2fe7eead31-44e86f3e4b6so1610145137.0 for ; Wed, 30 Aug 2023 06:42:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693402930; x=1694007730; 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=gYdWxYZy3Eiynx5f2hIWINH5Z20s58hG62jMGrVigRk=; b=HM6I7mm1a1WzWo0tU6dYMfJ7GDCfxwtFhIdvNu/zCmUMOo2b0moNPcJhdjrLMtluIo ui6b5mx6akBA1dcgBMUyv8mg9/MmDFAa9K6WWeTGQcHP6bpKUNVPUGcKytB6+dQaEI2P jKW/bsu8Ov1j8XKRMlWVU+Vt0PuIK2EKY2W/hSv7dkJUjbAPlNNaDE37kQ+lxJmIzOno OcO/mTM7cv/y+MMrz1YfLVg1jSKHKGSOVgL/BSIO5aY77j04JAXP+4TzLvy24bYCMomG q3eT/UHNCuGobVadG/0Irb4Y/ft7r67zhsoQTOIas1zz0ARimhKjqH/SE3k9/UYtwPAP YZsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693402930; x=1694007730; 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=gYdWxYZy3Eiynx5f2hIWINH5Z20s58hG62jMGrVigRk=; b=QA76KLBoJnnMN6gkp+NlJ+bZcRoXtc/S+Su17t/J2Fuf98Hu+bMsAorn6CO3ElAAjf LThX102ZZAmjg9rVzJGD5CbrNlw8hKN6QvNUtGT/LhYPL97GdanKgNqFYv+4xdCs1m1+ Ex5fls1XP26yvcId2cazmFFCgU/3qT+6xxQlV20ASnyIqajntK23Do/B5RIvcyLMCaKd xTborcnORd5XkyqsNzcQt8LaXxncaD4gzcYLrwOcZWwCUkW6opDDBZRqxn26zhSKsmuu TfqdMJ2YKeZ2dIJsSYuXDO6s18TQQDoY7mer2GwWXONq6nNNjvsENpM1g1EtxKmVe4zj Pj5A== X-Gm-Message-State: AOJu0YzaPdoTxRxTK86raqgq8X0n0M+3UNHd2gVneoY7EA7OTjaTXnth DJ9VzXQa8p6Ln8UviL93KpJ4ipjR1S9a+SFjdh7G2eiR X-Google-Smtp-Source: AGHT+IGm1cGzzZYgHnB1bBD/Ks4wTnCpPVk1WARrLXtd51egi7EMjAQRB31eftMHyezj9wWYlrQSX9Wp9fTsX8mjaoo= X-Received: by 2002:a67:fe93:0:b0:44e:9a71:27a1 with SMTP id b19-20020a67fe93000000b0044e9a7127a1mr1694404vsr.17.1693402930584; Wed, 30 Aug 2023 06:42:10 -0700 (PDT) MIME-Version: 1.0 References: <149ff9264db27cdf724b65709fbbaee4bf316835.camel@j-davis.com> In-Reply-To: <149ff9264db27cdf724b65709fbbaee4bf316835.camel@j-davis.com> From: Ashutosh Bapat Date: Wed, 30 Aug 2023 19:11:59 +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 Hi Jeff, On Wed, Aug 30, 2023 at 2:12=E2=80=AFPM Jeff Davis wrot= e: > > The server "myserver" must have been created with the new syntax: > > CREATE SERVER myserver FOR CONNECTION ONLY > > instead of specifying FOREIGN DATA WRAPPER. In other words, a server > FOR CONNECTION ONLY doesn't have a real FDW, it's a special server just > used for the postgres connection options. To create a server FOR > CONNECTION ONLY, the user must be a member of the new predefined role > pg_create_connection. A server FOR CONNECTION ONLY still uses ACLs and > user mappings the same way as other foreign servers, but cannot be used > to create foreign tables. Are you suggesting that SERVERs created with FDW can not be used as publishers? I think there's value in knowing that the publisher which contains a replica of a table is the same as the foreign server which is referenced by another foreign table. We can push down a join between a replicated table and foreign table down to the foreign server. A basic need for sharding with replicated tables. Of course there's a lot work that we have to do in order to actually achieve such a push down but by restricting this feature to only CONNECTION ONLY, we are restricting the possibility of such a push down. --=20 Best Wishes, Ashutosh Bapat