Re: psql command

From: "Tomeh, Husam" <htomeh(at)firstam(dot)com>
To: iuri(dot)sampaio(at)computer(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: psql command
Date: 2006-09-14 21:51:23
Message-ID: CB0FB369FF86E248A884BCC002562BCB0227D9E0@pisgsna01sxch01.ana.firstamdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I can see your PATH variable has the path to postgres bin dir, but still
looks like a environment variables issue.
Have you double-check whether your PATH is exported. Run these at the
Unix command line to make sure:

echo $PATH

which psql


The other thing that I'm not sure about is one of your output lines:

-su: createdb: command not found

I was expecting to see "-bash" instead of "-su" as the shell name.

--
Husam


________________________________

From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Iuri Sampaio
Sent: Wednesday, September 06, 2006 10:57 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] psql command

The postgres commands work fine to postgres user but it doesn't work to
a random user account

I already created the user on postgres

desktop:~# su - postgres

postgres(at)desktop:~$ createuser -a -d oacsbr

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/pgs
ql/bin:/usr/local/pgsql/bin

But somehow I can't run any commands such as

oacsbr(at)desktop:~$ createdb -E UNICODE mytestdb

-su: createdb: command not found

oacsbr(at)desktop:~$ psql -l

-su: psql: command not found

oacsbr(at)desktop:~$ psql -l mytestdb.dmp mytestdb

-su: psql: command not found

Does anyone knows what I've missed?

iuri

**********************************************************************
This message contains confidential information intended only for the use of the addressee(s) named above and may contain information that is legally privileged. If you are not the addressee, or the person responsible for delivering it to the addressee, you are hereby notified that reading, disseminating, distributing or copying this message is strictly prohibited. If you have received this message by mistake, please immediately notify us by replying to the message and delete the original message immediately thereafter.

Thank you.

FADLD Tag
**********************************************************************

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jeff Davis 2006-09-14 21:57:25 Re: [ADMIN] Vacuum error on database postgres
Previous Message Tom Lane 2006-09-14 20:35:29 Re: [ADMIN] Vacuum error on database postgres