Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a PostgreSQL server setup on Box A. I want to connect to the server from Box B using psql. What do I need to install on Box B? I can't find a client installation binary for PostgreSQL. Or do I have to install the entire PostgreSQL distribution?

share|improve this question
    
What is the OS? Most Linux systems will offer client-only packages. –  SvW Apr 4 '11 at 11:35
    
What is your OS: Linux, Windows, others? –  Khaled Apr 4 '11 at 11:36
    
It's Ubuntu. I will look for a package then. –  jason.ppdev Apr 4 '11 at 11:41
add comment

1 Answer 1

up vote 3 down vote accepted

On Debian the package you are looking for is called postgresql-client and I guess it will be the same on Ubuntu.

share|improve this answer
    
Where do I put pg_hba.conf though? It's supposed to be under the data directory, but there is none in a client only setup. –  jason.ppdev Apr 4 '11 at 14:06
    
You need pg_hba.conf only on the server side, not the client side. It defines which client might connect from where and how. –  SvW Apr 4 '11 at 14:15
    
Thanks, that makes sense. –  jason.ppdev Apr 4 '11 at 14:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.