Skip to content

Commit 3f1fda3

Browse files
authored
"fix search_path race" v2 - with make update (#292)
* make update: add new initdb-postgis.sh * update 13/14-master
1 parent 6bb51dd commit 3f1fda3

File tree

22 files changed

+98
-38
lines changed

22 files changed

+98
-38
lines changed

10-2.5/alpine/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

10-2.5/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

10-3.2/alpine/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

10-3.2/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

11-2.5/alpine/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

11-2.5/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

11-3.2/alpine/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

11-3.2/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

12-3.2/alpine/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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

12-3.2/initdb-postgis.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

33
set -e
44

@@ -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)