From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: vonproteus+postgresql.org@gmail.com
Subject: BUG #16353: pg_isready timeout is ignored
Date: Thu, 09 Apr 2020 06:00:39 +0000
Message-ID: <16353-9c7912834e84c78e@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16353
Logged by: vonProteus
Email address: vonproteus+postgresql.org@gmail.com
PostgreSQL version: 11.7
Operating system: docker postgres:11-alpine (x64)
Description:
hi
i have problem with pg_isready and time out
it look like it is ignored
this is my setup
$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -p
3333:5432 --rm -d postgres:11-alpine
4765f8dc49374044d551b3cdb0ce5284905ee1c01bf6a81b2cddf30ab6798bc8
$ time docker run --rm postgres:11-alpine pg_isready -t 120 -h
10.110.12.163 -p 3333
10.110.12.163:3333 - accepting connections
real 0m0.781s
user 0m0.000s
sys 0m0.031s
$ docker stop some-postgres
some-postgres
$ time docker run --rm postgres:11-alpine pg_isready -t 120 -h
10.110.12.163 -p 3333
10.110.12.163:3333 - no response
real 0m2.722s
user 0m0.000s
sys 0m0.031s
i would expect that second call would exit after 120s
i run this on windows
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, vonproteus+postgresql.org@gmail.com
Subject: Re: BUG #16353: pg_isready timeout is ignored
In-Reply-To: <16353-9c7912834e84c78e@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox