pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Guillaume Lelarge <guillaume@lelarge.info>
Cc: Patrick FICHE <Patrick.Fiche@aqsacom.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Execute a function through fdw
Date: Fri, 18 Oct 2019 13:54:39 +0200
Message-ID: <29136.1571399679@sss.pgh.pa.us> (raw)
In-Reply-To: <CAECtzeUbE=4_Y1Am75j6+em75LxFE69t=Zazp5_bpjGjcoV+ig@mail.gmail.com>
References: <AM5PR0501MB256343C885DBEE30B96CFAC0EF6C0@AM5PR0501MB2563.eurprd05.prod.outlook.com>
	<CAECtzeUbE=4_Y1Am75j6+em75LxFE69t=Zazp5_bpjGjcoV+ig@mail.gmail.com>

Guillaume Lelarge <guillaume@lelarge.info> writes:
> Le ven. 18 oct. 2019 à 11:51, Patrick FICHE <Patrick.Fiche@aqsacom.com> 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





view thread (8+ messages)  latest in thread

Message-ID: <29136.1571399679@sss.pgh.pa.us>
Permalink:  ../29136.1571399679@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29136.1571399679@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, guillaume@lelarge.info, Patrick.Fiche@aqsacom.com
  Subject: Re: Execute a function through fdw
  In-Reply-To: <29136.1571399679@sss.pgh.pa.us>
  References: <AM5PR0501MB256343C885DBEE30B96CFAC0EF6C0@AM5PR0501MB2563.eurprd05.prod.outlook.com> <CAECtzeUbE=4_Y1Am75j6+em75LxFE69t=Zazp5_bpjGjcoV+ig@mail.gmail.com> <29136.1571399679@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox