Re: [HACKERS] New procedural language - Mailing list pgsql-hackers

From Amit Langote
Subject Re: [HACKERS] New procedural language
Date
Msg-id 298e3c1d-3f6f-4dc6-694d-c70adce69421@lab.ntt.co.jp
Whole thread Raw
In response to [HACKERS] New procedural language  (Massimo Fidanza <malix0@gmail.com>)
Responses Re: [HACKERS] New procedural language  (Massimo Fidanza <malix0@gmail.com>)
List pgsql-hackers
Hi,

On 2017/03/15 11:08, Massimo Fidanza wrote:
> Hello,
> 
> what it means to add a new procedural language such as Go or Rust?

I think you're looking for how to write a "PL function call handler", most
likely in C.  See for example how plpython_call_handler() is defined in
src/pl/plpython/plpy_main.c.  Also read:

https://www.postgresql.org/docs/devel/static/plhandler.html

Beside the call handler, there are couple of other auxiliary functions
that must be provided viz. validator and inline_handler (again, see
plpython_validator and plpython_inline_handler).

Thanks,
Amit





pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [HACKERS] New procedural language
Next
From: Michael Paquier
Date:
Subject: Re: [HACKERS] exposing wait events for non-backends (was: Trackingwait event for latches)