On 01/01/2018 10:40 AM, Jeff Janes wrote:
> The Ubuntu packages use 5433 if you already have something (either a
> different packaged version, or an unpackaged system) running on 5432.
Also on Ubuntu lots of the Postgres utilities will obey an envvar like
`PGCLUSTER=9.5/main` to let you choose which version of
psql/pg_dump/etc. I don't know about pg_isready but it's worth a try.
Even if pg_isready doesn't follow that pattern, it is probably easy to
"teach" it. Here is how I did a similar thing for pg_config:
https://stackoverflow.com/questions/30143046/pg-config-shows-9-4-instead-of-9-3/43403193#43403193
Yours,
--
Paul ~{:-)
pj@illuminatedcomputing.com