331000738 / plv8-build

The easiest way to install PLV8 extension to current PostgreSQL release version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plv8-build: the easiest way to install PLV8 extension to current PostgreSQL release version

Build author

Installation

This build of PLV8 extension for PostgreSQL requires Linux with PostgreSQL 13.
Typical installation procedure may look like this:

$ git clone https://github.com/sibedge-llc/plv8-build.git
$ cd plv8-build
$ sudo make install

Docker

You can run PostgreSQL 13 with plv8 in Docker.

$ git clone https://github.com/sibedge-llc/plv8-build.git
$ cd plv8-build/docker
$ git checkout pg13-2.3.15
$ docker build -t pg13-plv8-2
$ docker run -it -d --name pg13-plv8-2 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432/tcp pg13-plv8-2

Test the installation

Create extension script should be executed at first. Please be aware that superuser or database owner privileges are needed

CREATE EXTENSION plv8;

Then you can perform SQL query (allowed to any user)

DO $$
  plv8.elog(NOTICE, 'Hello world!');
$$ LANGUAGE plv8;

About

The easiest way to install PLV8 extension to current PostgreSQL release version


Languages

Language:PLpgSQL 92.8%Language:Dockerfile 5.8%Language:Makefile 1.4%