[postgis-tickets] r16190 - Add 5 seconds sleep before attempt to drop regress database, to give pg time to start up in case not fully started.

Regina Obe lr at pcorp.us
Wed Dec 27 10:37:48 PST 2017


Author: robe
Date: 2017-12-27 10:37:48 -0800 (Wed, 27 Dec 2017)
New Revision: 16190

Modified:
   trunk/ci/debbie/postgis_regress.sh
Log:
Add 5 seconds sleep before attempt to drop regress database, to give pg time to start up in case not fully started.
Closes #3962

Modified: trunk/ci/debbie/postgis_regress.sh
===================================================================
--- trunk/ci/debbie/postgis_regress.sh	2017-12-27 15:23:29 UTC (rev 16189)
+++ trunk/ci/debbie/postgis_regress.sh	2017-12-27 18:37:48 UTC (rev 16190)
@@ -28,6 +28,10 @@
 rm -rf ${WORKSPACE}/tmp/${POSTGIS_MAJOR_VERSION}_${POSTGIS_MINOR_VERSION}_pg${PG_VER}w${OS_BUILD}
 #mkdir ${WORKSPACE}/tmp/
 export PGIS_REG_TMPDIR=${WORKSPACE}/tmp/${POSTGIS_MAJOR_VERSION}_${POSTGIS_MINOR_VERSION}_pg${PG_VER}w${OS_BUILD}
+
+#adding this sleep so postgres instance has some grace period for starting
+#otherwise the attempt to drop the database, sometimes happes when pg is in middle of start
+sleep 5
 export POSTGIS_REGRESS_DB="postgis_reg" # FIXME: tweak to avoid clashes
 psql -c "DROP DATABASE IF EXISTS $POSTGIS_REGRESS_DB"
 



More information about the postgis-tickets mailing list