We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c16f2 commit b441724Copy full SHA for b441724
src/pgpro-upgrade/pgpro_upgrade
@@ -4,6 +4,23 @@
4
# 3. sed
5
LC_MESSAGES=C
6
export LC_MESSAGES
7
+if [ "$1" = "--help" -o "$1" = "-h" ]; then
8
+ echo "$0 Upgrade PostgresPro database to new minor version"
9
+ echo ""
10
+ echo " $0"
11
12
+ echo "Upgrades database, pointed by PGDATA environment var, to current version"
13
14
+ echo " $0 --check"
15
16
+ echo "Returns zero code if database, pointed by PGDATA env. var, doesn't need upgrade"
17
+ echo "and non-zero if it needs"
18
19
+ echo "This script should be run as user, who owns database files,"
20
+ echo "typically 'postgres'"
21
+ exit 0
22
+fi
23
+
24
if [ -z "$PGDATA" ]; then
25
echo "PGDATA environment variable is not set. Stop." 1>&2
26
exit 2
0 commit comments