Code

base: Include extra version information in postrr_version() output.
[postrr.git] / pgtest.sh
index fb033ffa430e2adec98a1933e604d610f8377b5f..8cbb27cacddcca65b173a74ea5d5adbc272442b3 100755 (executable)
--- a/pgtest.sh
+++ b/pgtest.sh
 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-PG_CONFIG=`which pg_config`
+if test -z "$PG_CONFIG"; then
+       PG_CONFIG=`which pg_config`
+fi
 if test -z "$PG_CONFIG"; then
        echo "pg_config not found!" >&2
        exit 1
 fi
 
-BIN_DIR=`pg_config --bindir`
+BIN_DIR=`$PG_CONFIG --bindir`
 if test -z "$TARGET"; then
        TARGET=`pwd`/target
 fi
@@ -106,6 +108,8 @@ case "$1" in
                echo "    Start the PostgreSQL server."
                echo "  - stop"
                echo "    Stop the PostgreSQL server."
+               echo "  - restart"
+               echo "    Restart a background PostgreSQL server process."
                echo ""
                echo "Environment variables:"
                echo "  - TARGET"