Skip to content

Commit 8ae20e0

Browse files
committed
Fix hanging on recovering nodes
1 parent d6baf4c commit 8ae20e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pgpro-upgrade/pgpro_upgrade

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ if [ -z "$PGDATA" ]; then
66
echo "PGDATA environment variable is not set. Stop." 1>&2
77
exit 2
88
fi
9+
if [ -e "$PGDATA/recovery.conf" ]; then
10+
echo "recovery.conf exists in PGDATA. No upgrade script could be run." 1>&2
11+
exit 0
12+
fi
913
PGBIN="`echo $0|sed 's![^/\\]*$!!'`"
1014
if [ "$1" = "--check" ]; then
1115
check=1

0 commit comments

Comments
 (0)