Skip to content

Commit 587e865

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

initdb-postgis.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ 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+
-- Reconnect to update pg_setting.resetval
20+
-- See https://github.com/postgis/docker-postgis/issues/288
21+
\c
1922
CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
2023
CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;
2124
EOSQL

0 commit comments

Comments
 (0)