openbsd-ports/databases/postgresql-plv8/pkg
jeremy 9857ee4378 Add postgresql-plv8 1.3.0
PLV8 is a shared library that provides a PostgreSQL procedual language
powered by V8 JavaScript Engine. With this program you can write in
JavaScript your function that is callable from SQL.

Supported features are:

* Functions can receive any arguments, and return a value or set of
  records.
* Execute any SQL commands with built-in plv8.execute() function.
* Automatic data conversion between PostgreSQL and JavaScript,
  including string, numbers, timestamps, arrays, and records.
* Records are converted to JSON which keys are column names.
* Other types are converted to strings.
* Partial support to write TRIGGER handlers.
* EXTENSION support.
* CoffeeScript and LiveScript support.

OK abieber@
2012-12-20 16:16:34 +00:00
..
DESCR Add postgresql-plv8 1.3.0 2012-12-20 16:16:34 +00:00
PLIST Add postgresql-plv8 1.3.0 2012-12-20 16:16:34 +00:00
README Add postgresql-plv8 1.3.0 2012-12-20 16:16:34 +00:00

pl/v8 requires pthreads in order to work.  OpenBSD does not allow
shared objects that link to pthreads to be opened via dlopen if
the executable program does not link to pthreads.  So to use
pl/v8, you must ensure that PostgreSQL links to libpthread.
The easiest way to do this is adding the following login class
to login.conf:

postgresql:\
        :setenv=LD_PRELOAD=libpthread.so:\
        :tc=daemon: