PostgreSQL Bugs

Collected from the PG bugs email list.

Bug ID16353
PG Version11.7
OSdocker postgres:11-alpine (x64)
Opened2020-04-09 06:00:39+00
Reported byvonProteus

Body of first available message related to this bug follows.

The following bug has been logged on the website:

Bug reference:      16353
Logged by:          vonProteus
Email address:      (redacted)
PostgreSQL version: 11.7
Operating system:   docker postgres:11-alpine (x64)

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

$ time docker run --rm  postgres:11-alpine pg_isready -t 120 -h -p 3333 - accepting connections

real    0m0.781s
user    0m0.000s
sys     0m0.031s

$ docker stop some-postgres

$ time docker run --rm  postgres:11-alpine pg_isready -t 120 -h -p 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


2020-04-09 06:00:39+00PG Bug reporting formBUG #16353: pg_isready timeout is ignored
2020-04-09 07:45:26+00Hamid AkhtarRe: BUG #16353: pg_isready timeout is ignored