mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
506 B
Plaintext
22 lines
506 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pg_isready
|
|
|
|
> Check the connection status of a PostgreSQL server.
|
|
> More information: <https://www.postgresql.org/docs/current/app-pg-isready.html>.
|
|
|
|
- Check connection:
|
|
|
|
`pg_isready`
|
|
|
|
- Check connection with a specific hostname and port:
|
|
|
|
`pg_isready {{[-h|--host]}} {{hostname}} {{[-p|--port]}} {{port}}`
|
|
|
|
- Check connection displaying a message only when the connection fails:
|
|
|
|
`pg_isready {{[-q|--quiet]}}`
|