Note that as PLV8 3.1, there are new build requirements.
The following packages must be installed to build on Ubuntu:
The following packages must be install to build on MacOS:
XCode- and the command line tools
llvm- version 12 or higher
=# CREATE EXTENSION plv8;
This will install PLV8 into your database if it exists as an extension.
To test, you can execute:
=# DO $$ plv8.elog(NOTICE, "hello there!"); $$ LANGUAGE plv8;
For full documentation, see https://plv8.github.io/.