Re: Execute a function through fdw

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Execute a function through fdw
Дата
Msg-id CAECtzeUbE=4_Y1Am75j6+em75LxFE69t=Zazp5_bpjGjcoV+ig@mail.gmail.com
обсуждение исходный текст
Ответ на Execute a function through fdw  (Patrick FICHE <Patrick.Fiche@aqsacom.com>)
Ответы Re: Execute a function through fdw  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Le ven. 18 oct. 2019 à 11:51, Patrick FICHE <Patrick.Fiche@aqsacom.com> a écrit :

Hello,

 

Is it possible to execute a function located on a server accessed through Postgres fdw.

This function returns a TABLE structure.

 

I have mapped rmt_schema and there is a function called Get_Tables in this schema.

I would like to execute something like :

SELECT * FROM rmt_schema.Get_Tables();

 

Or is it required to create a local function that will access to remote tables in order to achieve the same result ?


It's probably easier to create a view on the remote server, and access it as a foreign table on the local server.

В списке pgsql-general по дате отправления:

Предыдущее
От: Sonam Sharma
Дата:
Сообщение: Create role like role
Следующее
От: Luca Ferrari
Дата:
Сообщение: Re: stable for each row before insert trigger