postgres client only installation.

this change is to allow installation of postgresql client only.
These conditionals should be inside the methods, not in the class body.