Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pg_monz/usr-local-bin/pgsql_standby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ PGSHELL_CONFDIR="$1"
# Load the psql connection option parameters.
source $PGSHELL_CONFDIR/pgsql_funcs.conf

result=$(psql -A -t -h $PGHOST -p $PGPORT -U $PGROLE -d $PGDATABASE -c "select pg_is_in_recovery()::int" 2>&1)
result=$(psql -A -t -h $PGSTANDBY -p $PGPORT -U $PGROLE -d $PGDATABASE -c "select pg_is_in_recovery()::int" 2>&1)
echo "$result"
1 change: 1 addition & 0 deletions pg_monz/usr-local-etc/pgsql_funcs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ PGHOST=127.0.0.1
PGPORT=5432
PGROLE=postgres
PGDATABASE=postgres
PGSTANDBY=standby_host