Re: Calling rest service from postgresql functions and stored proc

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: "mahesh(dot)sp" <mahes(dot)sp(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Calling rest service from postgresql functions and stored proc
Date: 2019-02-07 09:57:50
Message-ID: CABUevExrmW4M3xDf+U-W7rmncN_ZHOcMkNz0uBZO9qOiSPVd+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Feb 7, 2019 at 10:53 AM mahesh.sp <mahes(dot)sp(at)gmail(dot)com> wrote:

> Hi,
>
> Would like to know whether postgresql supports calling a rest service from
> function or stored procedure.
>
> Looking for Oracle to postgresql feasibility study.
>
> Searched in Google but could not find any official document regarding the
> same. Appreciate if inputs or reference links are shared or confirmed.
>
>
Absolutely. Pick any language capable of doing it (e.g. python, perl, v8/js
etc) and it will work fine. Depending on what the rest api looks like it
might also be a good idea to use something like multicorn to create a
foreign data wrapper to access it, thereby not needing a function or
procedure at all.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2019-02-07 10:00:16 Re: Calling rest service from postgresql functions and stored proc
Previous Message Ricardo Martin Gomez 2019-02-07 02:12:38 Re: Connection issue