Skip to content

plv8/plv8

r3.1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
March 12, 2023 16:40
April 14, 2012 00:49
March 28, 2022 12:56
doc
April 20, 2018 16:31
April 8, 2023 17:35
April 8, 2023 17:51
sql
April 8, 2023 17:35
April 2, 2022 07:26
April 8, 2023 18:43
April 8, 2023 17:35
April 8, 2023 17:35
December 1, 2013 06:37
April 8, 2023 17:35
March 17, 2022 18:01
April 8, 2023 17:35

PLV8 - A Procedural Language in Javascript powered by V8

PLV8 is a shared library that provides a PostgreSQL procedural language powered by V8 Javascript Engine. With this program you can write in Javascript your function that is callable from SQL.

Building

Note that as PLV8 3.1, there are new build requirements.

Linux

The following packages must be installed to build on Ubuntu:

  • libtinfo5
  • build-essential
  • ninja-build
  • python3
  • pkg-config

MacOS

The following packages must be install to build on MacOS:

  • XCode - and the command line tools
  • brew
  • llvm - version 12 or higher
  • ninja
  • python3

Installing

=# CREATE EXTENSION plv8;

This will install PLV8 into your database if it exists as an extension.

Testing

To test, you can execute:

=# DO $$ plv8.elog(NOTICE, "hello there!"); $$ LANGUAGE plv8;

For full documentation, see https://plv8.github.io/.

Docker

For preliminary Docker support, see ./platforms/Docker/README.md