From 7548a063f4b2813f39cb033eb76e58df4c2d6cd2 Mon Sep 17 00:00:00 2001 From: Jan Nidzwetzki Date: Fri, 1 Mar 2024 13:19:31 +0100 Subject: [PATCH] Increase PG startup time on windows The PG server sometimes needs longer than 30 seconds to start up. This commit changes the wait interval to 60 seconds to give the server more time to respond to connections. --- .github/workflows/windows-build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/windows-build-and-test.yaml b/.github/workflows/windows-build-and-test.yaml index 5de8d757d16..43e44eb6637 100644 --- a/.github/workflows/windows-build-and-test.yaml +++ b/.github/workflows/windows-build-and-test.yaml @@ -150,7 +150,7 @@ jobs: copy build_win/test/pg_hba.conf ${{ env.PGDATA }} icacls . /grant runneradmin:F /T ~/PostgreSQL/${{ matrix.pg }}/bin/pg_ctl start -o "${{ matrix.pg_config }}" --log=postmaster.log - ~/PostgreSQL/${{ matrix.pg }}/bin/pg_isready -U postgres -d postgres --timeout=30 + ~/PostgreSQL/${{ matrix.pg }}/bin/pg_isready -U postgres -d postgres --timeout=60 ~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'CREATE USER root SUPERUSER LOGIN;' echo "PG version:" ~/PostgreSQL/${{ matrix.pg }}/bin/psql -U postgres -d postgres -c 'SELECT version();'