[GSoC 2021 project summary] PL/Julia - Mailing list pgsql-hackers

From Konstantina Skovola
Subject [GSoC 2021 project summary] PL/Julia
Date
Msg-id CAMoX=-mBGnDmZ984ekveLwwcJGE0U04fwSnSqqVSiQq5h4eUGg@mail.gmail.com
Whole thread Raw
Responses Re: [GSoC 2021 project summary] PL/Julia  (Dave Cramer <davecramer@postgres.rocks>)
Re: [GSoC 2021 project summary] PL/Julia  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
List pgsql-hackers
Hello hackers,

Here is a summary of what was implemented over the summer in PL/Julia:

1. Added support for more datatypes as input and output: 
NULL, boolean, numeric types, composite types, arrays of base types can now be passed as input arguments to PL/Julia functions. Users can also return the above, or sets of the above from PL/Julia UDFs.    
2. Added trigger support - users can write trigger functions in PL/Julia
3. Added event trigger support 
4. Added support for the DO command
5. Added functions for database access from PL/Julia: 
spi_exec(query, limit) and spi_exec(query) for SQL-statement execution,
spi_fetchrow(cursor) and spi_cursor_close(cursor) to return rows and to close the cursor respectively, 
spi_prepare(query, argtypes) to prepare and save an execution plan and
spi_exec_prepared(plan, args, limit) to execute a previously prepared plan.


Currently the extension works for version 13 and Julia versions >= 1.6 (Thanks to Imre Samu for testing!)

I hope you find it interesting.

Regards,
Konstantina

pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: row filtering for logical replication
Next
From: Peter Eisentraut
Date:
Subject: Re: Mark all GUC variable as PGDLLIMPORT