ubuntu メモ
いつもの Linux ユーザ(非root、非postgres)から PostgreSQL に postgres アカウントでログインするまで。
まず Linux ユーザ postgres になる。
$ sudo su - postgres
PostgreSQL に接続する。
$ psql template1
PostgreSQL アカウント postgres のパスワードを設定。
template1=# alter user postgres with password 'パスワード'; ALTER USER template1=# \q
以上。