Pllua

From Alpine Linux

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

  1. Install PL/Lua
apk add pllua
  1. Install PL/Lua on your database.
psql -U postgres -f /usr/share/postgresql/contrib/pllua.sql <DBNAME>

Official Documentation

Official documentation is found at http://pllua.projects.postgresql.org/.

Additional Functions

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: