diff --git a/test_pg.sh b/test_pg.sh
index c4fdadbab458db6ad57a0da830e59a47b23b8d57..19bf202489dce4fa64f6cc14c2b6c21debe058ab 100644
--- a/test_pg.sh
+++ b/test_pg.sh
@@ -4,7 +4,8 @@ set -eu
 
 go test -c -o ./goatherd.test &
 
-if [ "${1:-x}" = "--start-pg" ]; then 
+if [ "${1:-x}" = "--start-pg" ]; then
+    shift
     PGHOST="$PWD/postgres_test"
     if [ $# -ge 1 ]; then
         PGHOST="$(realpath -- "$1")"