BUG #19002: `pg_isready` unexpectedly succeeds on incorrect `--dbname` and/or `--username`

PG Bug reporting form <noreply@postgresql.org>

From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: samuelmarks@gmail.com
Date: 2025-07-29T19:11:03Z
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      19002
Logged by:          Samuel Marks
Email address:      samuelmarks@gmail.com
PostgreSQL version: 17.5
Operating system:   macOS
Description:        

```
/  > pg_isready -U fff
/tmp:5432 - accepting connections
/  > pg_isready -U fff -d555
/tmp:5432 - accepting connections
```

(`fff` is not a user and `555` is not a db on my installation)