Automatically enable the btree_gist extension
This simplifies the install instructions. Loading from structure.sql is already handled.
This commit is contained in:
parent
01b84a8107
commit
6c5c36deac
5 changed files with 4 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue