Added plpythonu
This commit is contained in:
parent
0f9c53ddc2
commit
e72b4ea7b6
@ -32,8 +32,6 @@ apt-get -y install postgresql-${PGSQL_VERSION} postgresql-${PGSQL_VERSION}-postg
|
|||||||
# Configure it to accept local connections from postgres
|
# Configure it to accept local connections from postgres
|
||||||
echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" > /etc/postgresql/${PGSQL_VERSION}/main/pg_hba.conf
|
echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" > /etc/postgresql/${PGSQL_VERSION}/main/pg_hba.conf
|
||||||
|
|
||||||
psql -U postgres -c "CREATE LANGUAGE plpythonu;"
|
|
||||||
|
|
||||||
# Restart PostgreSQL
|
# Restart PostgreSQL
|
||||||
/etc/init.d/postgresql restart ${PGSQL_VERSION}
|
/etc/init.d/postgresql restart ${PGSQL_VERSION}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
-- Install dependencies
|
-- Install dependencies
|
||||||
CREATE EXTENSION postgis;
|
CREATE EXTENSION postgis;
|
||||||
|
CREATE LANGUAGE plpythonu;
|
||||||
-- Install the extension
|
-- Install the extension
|
||||||
CREATE EXTENSION observatory VERSION 'dev';
|
CREATE EXTENSION observatory VERSION 'dev';
|
||||||
\i test/fixtures/load_fixtures.sql
|
\i test/fixtures/load_fixtures.sql
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
-- Install dependencies
|
-- Install dependencies
|
||||||
CREATE EXTENSION postgis;
|
CREATE EXTENSION postgis;
|
||||||
|
CREATE LANGUAGE plpythonu;
|
||||||
|
|
||||||
-- Install the extension
|
-- Install the extension
|
||||||
CREATE EXTENSION observatory VERSION 'dev';
|
CREATE EXTENSION observatory VERSION 'dev';
|
||||||
|
Loading…
Reference in New Issue
Block a user