Skip to content

Commit 2c18c39

Browse files
committed
Reconnect after creating extension, to fix search_path race
Closes GH-288
1 parent dd39bdb commit 2c18c39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

initdb-postgis.sh

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ for DB in template_postgis "$POSTGRES_DB"; do
1616
"${psql[@]}" --dbname="$DB" <<-'EOSQL'
1717
CREATE EXTENSION IF NOT EXISTS postgis;
1818
CREATE EXTENSION IF NOT EXISTS postgis_topology;
19+
\c
1920
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
2021
CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;
2122
EOSQL

0 commit comments

Comments
 (0)