postgresql - Where to find plv8.so, plv8.control, etc. and where to copy them to? -


i following these instructions both build , install plv8 on postgresql:

plv8 readme.md instructions

in particular, following instructions not clear:

installing build:

after running make or make static following files must copied correct location postgresql find them:

pl/v8 javascript extension:

plv8.so

plv8.control

plv8--{plv8-build-version-here}.sql

1.) find 3 files listed above after successful build?

2.) copy them to? e.g., definition of 'the correct location postgresql find them'

all generated files should appear in folder in have unpacked package. if cannot see them means compilation has failed.

you should use pg_config param.

example. postgres folder /opt/postgres/9.5. can check running command in psql:

show data_directory       data_directory      ------------------------  /opt/postgres/9.5/data (1 row) 

use corresponding bin/pg_config path in make commands automatic installation (remove unpacked files before installation):

/home/ubu/plv8# tar -xvzf v2.1.0.tar.gz /home/ubu/plv8# cd pl* /home/ubu/plv8/plv8-2.1.0# make pg_config=/opt/postgres/9.5/bin/pg_config static /home/ubu/plv8/plv8-2.1.0# make pg_config=/opt/postgres/9.5/bin/pg_config install 

you can copy files (instead of make install):

/home/ubu/plv8/plv8-2.1.0# cp plv8.so /opt/postgres/9.5/lib/postgresql/ /home/ubu/plv8/plv8-2.1.0# cp plv8.control /opt/postgres/9.5/share/postgresql/extension/ /home/ubu/plv8/plv8-2.1.0# cp plv8--2.1.0.sql /opt/postgres/9.5/share/postgresql/extension/ 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -