[pgsql-jp: 36395] Re: PostgreSQLのスタート
Honda Shigehiro
fwif0083 @ mb.infoweb.ne.jp
2005年 11月 15日 (火) 22:54:40 JST
本田です。
From: Katumi Miyao <kattyan @ nakayosi.jp>
Subject: [pgsql-jp: 36394] Re: PostgreSQLのスタート
Date: Tue, 15 Nov 2005 21:38:28 +0900
> [root @ himawari root]# su postgres
> [postgres @ himawari root]$ cd
> [postgres @ himawari postgres]$ psql --version
> bash: psql: command not found
[root @ keith root]# su postgres
[postgres @ keith root]$ psql
bash: psql: command not found
[postgres @ keith root]$ exit
[root @ keith root]# su - postgres
[postgres @ keith postgres]$ psql
Welcome to psql 8.1.0, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
ということではないですか。
suとsu -の違いと.bash_profileの読み込まれるタイミングについては
man su とman sh(もしかしたらman bashかも)を参照してください。
pgsql-jp メーリングリストの案内