psql command - Mailing list pgsql-admin

From Iuri Sampaio
Subject psql command
Date
Msg-id 000301c6d242$68aadb20$6401a8c0@LAPTOP
Whole thread Raw
Responses Re: psql command  ("Tomeh, Husam" <htomeh@firstam.com>)
List pgsql-admin

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

 

 

But somehow I can’t run any commands such as

oacsbr@desktop:~$ createdb -E UNICODE mytestdb

-su: createdb: command not found

oacsbr@desktop:~$ psql -l

-su: psql: command not found

oacsbr@desktop:~$ psql -l mytestdb.dmp mytestdb

-su: psql: command not found

 

 

Does anyone knows what I’ve missed?

 

iuri

 

pgsql-admin by date:

Previous
From: Ray Stell
Date:
Subject: Re: COPY FROM command v8.1.4
Next
From: "Iuri Sampaio"
Date:
Subject: Re: psql command