LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-07-2011, 10:35 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question PostgreSQL Client Application


I would like to be able to connect to my PostgreSQL server in the office without having to always SSH to the server and then use the client on the server. Can I simply not use a client on my workstation and connect using:

Code:
psql -h 192.168.1.200 -d dbname
I don't want to install the database application daemon on my workstation as I find that to be extremely overkill in order to just connect via CLI to a database server. I would think there has to be a separate client application I can install, no?
 
Old 02-07-2011, 10:41 AM   #2
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
Yes, you can just install postgresql rather than postgresql-server on your workstation. The package names will vary depending on what distro you are using, but the names I mentioned should be correct for fedora. This will provide you with the psql utility. You'll need to allow your workstation's IP to connect in pg_hba.conf also.
 
Old 02-07-2011, 10:45 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Looks like in my distribution (Arch Linux) there is no separate package between server / client. When I did a search on my workstation, I had the following installed:

Code:
[cmennens@tuna ~]$ pacman -Qs postgresql
local/postgresql-libs 9.0.2-2
    Libraries for use with PostgreSQL
I can't install PostgreSQL server on my workstation even if I don't start the daemon as it's not authorized by my companies policy. Only if there is a separate package for the client, not the server.
 
Old 02-07-2011, 11:21 AM   #4
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
That's a shame. I guess, in that case, you could compile postgres from source, and delete the postgres binary from /usr/local/pgsql/bin/postgres ? That would remove the db server, but psql would still be in the bin directory. Alternatively you could look for third-party client software, I don't have any experience with that though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Front End Viewing Application for PostgreSQL? carlosinfl Linux - Server 1 09-25-2010 11:34 AM
Question about java+postgresql and linux 64bit (web-application) AleLinuxBSD Programming 3 01-05-2009 04:26 PM
server client application in c sarahnetworking Programming 4 03-02-2008 05:23 PM
Postgresql: Client only installation? schrank Linux - Software 1 10-31-2006 10:09 AM
LQ.org Client Application? vharishankar LQ Suggestions & Feedback 2 04-08-2005 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration