psql command

From: "Iuri Sampaio" <iuri(dot)sampaio(at)gmail(dot)com>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: psql command
Date: 2006-09-07 05:56:46
Message-ID: 000301c6d242$68aadb20$6401a8c0@LAPTOP
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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/pgsql/b
in:/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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Iuri Sampaio 2006-09-07 06:00:42 Re: psql command
Previous Message Alvaro Herrera 2006-09-07 02:47:50 Re: transactoin id wraparound problem