4 # Create 'openstreetmap' user
5 # Password and superuser privilege are needed to successfully run test suite
6 psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" <<-EOSQL
7 CREATE USER openstreetmap SUPERUSER PASSWORD 'openstreetmap';
8 GRANT ALL PRIVILEGES ON DATABASE openstreetmap TO openstreetmap;
11 # Create btree_gist extensions
12 psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -c "CREATE EXTENSION btree_gist" openstreetmap
14 # Define custom functions
15 psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -f "/usr/local/share/osm-db-functions.sql" openstreetmap