PL/Lua is an implementation of Lua as a loadable procedural language for PostgreSQL: with PL/Lua you can use PostgreSQL functions and triggers written in the Lua programming language.
How to Install and Use PL/Lua
- Install PL/Lua
apk add pllua
- Install PL/Lua on your database.
psql -U postgres -f /usr/share/postgresql/contrib/pllua.sql <DBNAME>
Official documentation is found at http://pllua.projects.postgresql.org/.
These functions may not be listed in other documentation, but were found by printing entries in _G in a PL/Lua trigger.
_PLVERSION PL/Lua fromstring function: info function: log function: notice function: server table: setshared function: shared table: trigger table: warning function: