Automatically enable the btree_gist extension

This simplifies the install instructions. Loading from structure.sql is already handled.
This commit is contained in:
Andy Allan 2021-03-10 18:20:03 +00:00
parent 01b84a8107
commit 6c5c36deac
5 changed files with 4 additions and 15 deletions

View file

@ -8,8 +8,5 @@ psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" <<-EOSQL
GRANT ALL PRIVILEGES ON DATABASE openstreetmap TO openstreetmap;
EOSQL
# Create btree_gist extensions
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -c "CREATE EXTENSION btree_gist" openstreetmap
# Define custom functions
psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -f "/usr/local/share/osm-db-functions.sql" openstreetmap