私はpostgresを9.5から9.6にアップグレードしようとしています。 brew upgrade postgresql
は成功しますが、データベースユーザー "postgres"はインストールユーザーではありません
pg_upgrade -b /usr/local/Cellar/postgresql/9.5.3/bin/ -B /usr/local/Cellar/postgresql/9.6.1/bin/ -d /usr/local/var/postgres -D /usr/local/var/postgres9.6 -U postgres
を実行しているとき、私は、エラー
Performing Consistency Checks
-----------------------------
Checking cluster versions ok
Checking database user is the install user
database user "postgres" is not the install user
Failure, exiting
終わり-U postgres
ずにしようとしたとき、どのように
Checking database user is the install user ok
を来るそれも奇妙
Performing Consistency Checks
-----------------------------
Checking cluster versions ok
Checking database user is the install user ok
Checking database connection settings ok
Checking for prepared transactions ok
Checking for reg* system OID user data types ok
Checking for contrib/isn with bigint-passing mismatch ok
Checking for roles starting with 'pg_' ok
Creating dump of global objects ok
Creating dump of database schemas
ok
Checking for presence of required libraries ok
Checking database user is the install user
database user "dimid" is not the install user
を取得を取得します
おかげで、どのように私は、クラスタを作成したユーザーを見つけることができますか? – dimid
あなたは 'SELECT rolname FROM pg_roles WHERE oid = 10'でそれを行いますが、それは必要ではありません。新しいクラスタを削除し、 '-U dimid'で再作成してください。 –
ありがとう、それはトリックでした。好奇心から、「10」は何を指していますか? – dimid