do not execute pgsql command if not running