Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLQtB-0001P9-RV for pgsql-general@arkaria.postgresql.org; Fri, 18 Oct 2019 11:57:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iLQtA-0002OE-IF for pgsql-general@arkaria.postgresql.org; Fri, 18 Oct 2019 11:57:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLQqJ-0006DW-47 for pgsql-general@lists.postgresql.org; Fri, 18 Oct 2019 11:54:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iLQqG-0003KY-HT for pgsql-general@lists.postgresql.org; Fri, 18 Oct 2019 11:54:50 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9IBsdF6025374; Fri, 18 Oct 2019 07:54:39 -0400 From: Tom Lane To: Guillaume Lelarge cc: Patrick FICHE , "pgsql-generallists.postgresql.org" Subject: Re: Execute a function through fdw In-reply-to: References: Comments: In-reply-to Guillaume Lelarge message dated "Fri, 18 Oct 2019 13:13:31 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <29135.1571399679.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 18 Oct 2019 13:54:39 +0200 Message-ID: <29136.1571399679@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Guillaume Lelarge writes: > Le ven. 18 oct. 2019 à 11:51, Patrick FICHE a > écrit : >> Is it possible to execute a function located on a server accessed through >> Postgres fdw. > It's probably easier to create a view on the remote server, and access it > as a foreign table on the local server. Yeah. Or if you really want to call a remote function by name, see dblink. postgres_fdw actively avoids doing that sort of thing. regards, tom lane