LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pg_isready

checks PostgreSQL server connection readiness

TLDR

Check if server is ready
$ pg_isready
copy
Check specific host
$ pg_isready -h [host] -p [port]
copy
Check with timeout
$ pg_isready -t [seconds]
copy
Quiet mode
$ pg_isready -q
copy

SYNOPSIS

pg_isready [options]

DESCRIPTION

pg_isready checks PostgreSQL server connection readiness. Returns exit code indicating server status. Useful for scripts and health checks before connecting.

PARAMETERS

-h, --host host

Server hostname.
-p, --port port
Server port.
-t, --timeout seconds
Connection timeout.
-q, --quiet
Suppress output.
-d, --dbname name
Database name.

INSTALL

sudo apk add postgresql17-client
copy

SEE ALSO

psql(1), pg_ctl(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid