Re: New procedural language

From: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
To: Massimo Fidanza <malix0(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: New procedural language
Date: 2017-03-15 02:52:05
Message-ID: 298e3c1d-3f6f-4dc6-694d-c70adce69421@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-03-15 02:57:56 Re: exposing wait events for non-backends (was: Tracking wait event for latches)
Previous Message Michael Paquier 2017-03-15 02:34:22 Re: New procedural language