- Alexey Fadeev fadeevas@sibedge.com, sibedge, Tomsk, Russia
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
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
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;