diff --git a/tests/scripts/test_postgresql.py b/tests/scripts/test_postgresql.py
index e7e233ba311f4f2b0dad6e1ff31ca26f767fb0b6..ed27e0bfcb1f07228e9d7a4a520c3381e9601f14 100755
--- a/tests/scripts/test_postgresql.py
+++ b/tests/scripts/test_postgresql.py
@@ -389,7 +389,7 @@ def main():
     """Run all checks and exits with corresponding exit code."""
 
     apt = Apt()
-    if "postgresql" not in apt.installed_packages:
+    if "postgresql-client" not in apt.installed_packages:
         exit(2)
 
     # load configuration