From: Iuri Sampaio <iuri.sampaio@gmail.com>
To: pgsql-admin@postgresql.org
Subject: psql command
Date: Thu, 7 Sep 2006 02:56:46 -0300
Message-ID: <000301c6d242$68aadb20$6401a8c0@LAPTOP> (raw)
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/b
in:/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
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: iuri.sampaio@gmail.com
Subject: Re: psql command
In-Reply-To: <000301c6d242$68aadb20$6401a8c0@LAPTOP>
References: <000301c6d242$68aadb20$6401a8c0@LAPTOP>
* 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