コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
9013 ビュー

By checking like below:

Sudo su - postgres

psql

\l (it shows all the databases and its corresponding owner)

And I realize that all my databases owner is Postgres user, not odoo.

So that when I am trying to backup, restore, create database its shows an error message.  

Database backup error: Postgres subprocess('/usr/bin/pg_dump, --no-owner, -file=/tmp/tmprem/dump.sql, my_database_name), error 1.

How can solve the issue?

Server 1: odoo 9.0 & Postgresql:9.3 (all the Postgres, pg_dump are the same versions)

Server 2: odoo 11 & Postgresql:9.6 (all the Postgres, pg_dump are the same versions)

Please help me.




アバター
破棄
最善の回答

Hi,

try following

ALTER DATABASE database_name OWNER TO user_name;

Python Brains

アバター
破棄
著作者

I tried the above query. But nothing changed.

The above comment should work as I tried, and it was successfully executed.

最善の回答

Did you figure out what problem was?

アバター
破棄
関連投稿 返信 ビュー 活動
0
7月 25
1504
2
11月 24
6490
2
10月 24
3466
2
8月 24
1999
3
7月 24
8391