[pgcluster: 81] pgcluster環境での一般ユーザ作成について

dshaeno dshaeno @ m-surf.ne.jp
2004年 2月 6日 (金) 11:31:03 JST


初めて投稿いたします。波江野と申します。

現在、RedHat8上でpgcluster1.0.6の導入、検証を行っております。
レプリケーションサーバ2台+クラスタサーバ3台にて導入し、
postgresユーザでのマスタDB上の処理が
残り2台に伝播することは確認しております。

同環境で、一般ユーザを作成して動作確認をしようとすると
	Shall the new user be allowed to create databases? (y/n) y
	Shall the new user be allowed to create more new users? (y/n) y
で作成した場合(パターン1)には、psqlが正常に動作し、
	Shall the new user be allowed to create databases? (y/n) y
	Shall the new user be allowed to create more new users? (y/n) n
で作成した場合(パターン2)では複数のエラーが発生し、
psqlの動作が確認できない状況です。

postgres7.3.4での検証では、特に問題なく動作するのですが、
pgcluster上ではユーザ作成時に注意点があるのでしょうか?
ご存知の方がおられましたら、ご教示いただければ幸いです。

以下、具体的な作業経過です。
[パターン1]
	[postgres @ DBIV pgsql]$ createuser test
	Shall the new user be allowed to create databases? (y/n) y
	Shall the new user be allowed to create more new users? (y/n) y
	CREATE USER
	[postgres @ DBIV pgsql]$ su - test
	Password:
	[test @ DBIV test]$ createdb test
	CREATE DATABASE
	[test @ DBIV test]$ psql
	Welcome to psql 7.3.4, the PostgreSQL interactive terminal.
	Type:  \copyright for distribution terms
	       \h for help with SQL commands
	       \? for help on internal slash commands
	       \g or terminate with semicolon to execute query
	       \q to quit
	test=# \d
	No relations found.

[パターン2]
	[test @ DBIV test]$ dropdb test
	DROP DATABASE
	[test @ DBIV test]$ exit
	[postgres @ DBIV pgsql]$ dropuser test
	DROP USER
	[postgres @ DBIV pgsql]$ createuser test
	Shall the new user be allowed to create databases? (y/n) y
	Shall the new user be allowed to create more new users? (y/n) n
	CREATE USER

	[postgres @ DBIV pgsql]$ su - test
	Password:
	[test @ DBIV test]$ createdb test
	CREATE DATABASE
	[test @ DBIV test]$ psql
	ERROR:  pg_user: permission denied
	Welcome to psql 7.3.4, the PostgreSQL interactive terminal.
	Type:  \copyright for distribution terms
	       \h for help with SQL commands
	       \? for help on internal slash commands
	       \g or terminate with semicolon to execute query
	       \q to quit
	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



pgcluster メーリングリストの案内