mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 17:56:58 +00:00
Update cheatsheets
This commit is contained in:
21
pg_isready
Normal file
21
pg_isready
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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 --host={{hostname}} --port={{port}}`
|
||||
|
||||
- Check connection displaying a message only when the connection fails:
|
||||
|
||||
`pg_isready --quiet`
|
||||
Reference in New Issue
Block a user