necessary package to build pgsql extension

This commit is contained in:
can
2019-11-22 04:12:39 +03:00
parent 060bf1a64b
commit 791a8c3da0

View File

@@ -93,6 +93,9 @@ usermod -G danbooru,sudo danbooru
export PG_VERSION=`pg_config --version | egrep -o '[0-9]{1,}\.[0-9]{1,}'`
if verlte 9.5 $PG_VERSION ; then
# only do this on postgres 9.5 and above
#necessary to build parser extension
apt install postgresql-server-dev-all -y
git clone https://github.com/r888888888/test_parser.git /tmp/test_parser
cd /tmp/test_parser
make install