pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Pundt <mlists@rp-online.de>
To: iuri.sampaio@computer.org
To: pgsql-admin@postgresql.org
Subject: Re: psql command
Date: Thu, 14 Sep 2006 16:24:28 +0200
Message-ID: <200609141624.28834.mlists@rp-online.de> (raw)
In-Reply-To: <000801c6d242$f5238ca0$6401a8c0@LAPTOP>
References: <000801c6d242$f5238ca0$6401a8c0@LAPTOP>

Hi,

On Thursday 07 September 2006 08:00, Iuri Sampaio wrote:
| oacsbr@desktop:~$ env | grep PATH
| PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
|
| Funny thing, speaking about full paths... there is no psql command in
| "/usr/bin/"

that's because it's presumably installed under /usr/local/pgsql/bin --
look at the PATH variable for user postgres or check with "which psql"
as user postgres.

| oacsbr@desktop:~$ ls -l /usr/bin/psql
|
| ls: /usr/bin/psql: No such file or directory
[...]
| The postgres commands work fine to postgres user but it doesn't work to a
| random user account
| and set on .bashrc
|
| LD_LIBRARY_PATH=:/usr/local/pgsql/lib:/usr/local/pgsql/lib
|
| PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/local/pgsql/
|b in:/usr/local/pgsql/bin
|

you want to repeat this step for other users required to run the "psql"
command.


Ciao,
Thomas

-- 
Thomas Pundt <thomas.pundt@rp-online.de> ---- http://rp-online.de/ ----



view thread (4+ messages)  latest in thread

Message-ID: <200609141624.28834.mlists@rp-online.de>
Permalink:  ../200609141624.28834.mlists@rp-online.de/
Also on:    postgresql.org/message-id/200609141624.28834.mlists@rp-online.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mlists@rp-online.de, iuri.sampaio@computer.org
  Subject: Re: psql command
  In-Reply-To: <200609141624.28834.mlists@rp-online.de>
  References: <000801c6d242$f5238ca0$6401a8c0@LAPTOP> <200609141624.28834.mlists@rp-online.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox