absolute before starting a backend.
exit 1
fi
-# The data path must be absolute, because the backend doesn't like
-# '.' and '..' stuff. (Should perhaps be fixed there.)
-
-echo "$PGDATA" | grep '^/' > /dev/null 2>&1
-if [ "$?" -ne 0 ]
-then
- echo "$CMDNAME: data path must be specified as an absolute path"
- exit 1
-fi
-
#-------------------------------------------------------------------------
# Find the input files
fi
fi
+# Be sure that PGDATA is an absolute path, otherwise backend croaks.
+
+unset CDPATH
+PGDATA=`cd $PGDATA && pwd`
+
##########################################################################
#