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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy