[pgcluster: 82] Re: pgcluster環境での一般ユーザ作成について
   
    Jun Kuriyama
     
    pgcluster@ml.postgresql.jp
       
    Fri, 06 Feb 2004 11:40:56 +0900
    
    
  
At Fri, 06 Feb 2004 11:31:03 +0900,
dshaeno wrote:
> postgres7.3.4での検証では、特に問題なく動作するのですが、
> pgcluster上ではユーザ作成時に注意点があるのでしょうか?
 pgcluster だからなのか、というのがよくわかっていないのですが、こちら
でも同じような状況に陥ったので、psql -E を使って調べてみました。
 どうも作成した DB の pg_catalog.pg_* に select できないことが原因の
ようで、(pgsql の) superuser 権限で接続して、
test=# grant select on pg_catalog.pg_class,pg_catalog.pg_namespace,pg_catalog.pg_user to test;
としてやると、少なくとも \d は動くようになりました。
> 	ERROR:  current transaction is aborted, queries ignored until end of 	transaction block
> 	test=> \d
> 	ERROR:  current transaction is aborted, queries ignored until end of 	transaction block
> 	test=> rollback;
> 	ROLLBACK
> 	test=> \d
> 	ERROR:  pg_class: permission denied
-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project