diff --git a/run.sh b/run.sh index 189e0f3..55103bc 100755 --- a/run.sh +++ b/run.sh @@ -37,6 +37,8 @@ if [ "$1" = "import" ]; then sudo -u postgres createdb -E UTF8 -O renderer gis sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis;" sudo -u postgres psql -d gis -c "CREATE EXTENSION hstore;" + sudo -u postgres psql -d gis -c "ALTER SYSTEM SET work_mem='16MB';" + sudo -u postgres psql -d gis -c "ALTER SYSTEM SET maintenance_work_mem='256MB';" sudo -u postgres psql -d gis -c "ALTER TABLE geometry_columns OWNER TO renderer;" sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO renderer;" setPostgresPassword