`postgresql-server-dev-9.1` has a dependency on `libpq-dev`, where the former provides headers for postgres itself and the latter provides the headers for the client communication library.  It would be preferable to have the latter because it's slimmer and does not contain unecessary headers but that's a preference.