Re: New procedural language

From: Massimo Fidanza <malix0(at)gmail(dot)com>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: New procedural language
Date: 2017-03-15 07:20:48
Message-ID: CAHtv6wSzbFYWDeY+rtBY1K+Fd3p0E+K0e3jHrf8Pes4k+bJSkg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

But there is a difference between python and Go or Rust that the first is
interpreted and the seconds are compiled like C. All PL instead of C and
Java (also byte code interpreted) are interpreted

Il 15 mar 2017 3:52 AM, "Amit Langote" <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> ha
scritto:

> 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 Rushabh Lathia 2017-03-15 07:33:30 Re: wait events for disk I/O
Previous Message Ian Barwick 2017-03-15 07:15:51 Re: Measuring replay lag