diff --git a/conf/type/__postgres_database/explorer/state b/conf/type/__postgres_database/explorer/state index 565c8a63..dc9659e2 100755 --- a/conf/type/__postgres_database/explorer/state +++ b/conf/type/__postgres_database/explorer/state @@ -20,7 +20,7 @@ name="$__object_id" -if su - postgres -c "psql -l | grep -q '^ *$name'"; then +if su - postgres -c "echo '\q' | psql '$name'" 2>/dev/null; then echo "present" else echo "absent"