X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B5AEF9F9F2F for ; Thu, 14 Sep 2006 11:24:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 43270-08 for ; Thu, 14 Sep 2006 11:24:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.rp-online.de (mail.rp-online.de [149.221.1.199]) by postgresql.org (Postfix) with ESMTP id 2F6D29FA2E6 for ; Thu, 14 Sep 2006 11:24:07 -0300 (ADT) Received: from idefix.d.rp-online.de (idefix.d.rp-online.de [149.221.100.194]) by mail.rp-online.de (Postfix) with ESMTP id 221872EB88; Thu, 14 Sep 2006 16:24:05 +0200 (CEST) From: Thomas Pundt Reply-To: Thomas Pundt Organization: RP Online GmbH To: iuri.sampaio@computer.org, pgsql-admin@postgresql.org Subject: Re: psql command Date: Thu, 14 Sep 2006 16:24:28 +0200 User-Agent: KMail/1.9.4 References: <000801c6d242$f5238ca0$6401a8c0@LAPTOP> In-Reply-To: <000801c6d242$f5238ca0$6401a8c0@LAPTOP> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609141624.28834.mlists@rp-online.de> X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.10/RELEASE, bases: 14092006 #210263, status: clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.112 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: * X-Archive-Number: 200609/134 X-Sequence-Number: 23048 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 ---- http://rp-online.de/ ----