Pllua: Difference between revisions

From Alpine Linux
mNo edit summary
mNo edit summary
Line 1: Line 1:
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 =
= How to Install and Use PL/Lua =
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.


# Install PL/Lua
# Install PL/Lua

Revision as of 14:16, 2 June 2011

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: