Re: looking for psql without server-installation - Mailing list pgsql-general

From Magnus Hagander
Subject Re: looking for psql without server-installation
Date
Msg-id 489AD5AC.1020801@hagander.net
Whole thread Raw
In response to Re: looking for psql without server-installation  (<Christian.Strobl@dlr.de>)
Responses Re: looking for psql without server-installation
List pgsql-general
Christian.Strobl@dlr.de wrote:
> maybe i misworded my problem. i am looking for the possibility to install a psql client (without a server) out of the
sources.my usecase is: one server with a postgresql-server (self compiled) and several workstations with psql-clients,
alsopreferred self compiled.  
> i know that is possible to compile at every workstation the sourcecode of the server to get a psql-client. but the
sideeffect is, that in this case i have a potential server at every workstation and in my opinion that is a very large
footprint.i have to compile psql for myself because otherwise (installing binaries with packaging tools) i have no (or
minimal)control about the version of the client. 
> i think that is a use case which can be applied to the needs of many people (for example: oracle offers also
client-only-packageswhich are containing sql+, ...) 
> hoping for a solution

Just run the "make" and "make install" commands in subdirs only. You
will need to do it in src/interfaces/libpq and src/bin/psql to get a
working psql.

But you can certainly have control over the version on the client even
if you use binary packages like .RPMs. Just decide which version you
install. The OS may come with a pre-selected version by default, but for
most OSes there are RPMs or DEBs available for other versions as well
that you can install.

//Magnus


pgsql-general by date:

Previous
From:
Date:
Subject: Re: looking for psql without server-installation
Next
From: Tomasz Ostrowski
Date:
Subject: Re: looking for psql without server-installation