Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8999 Lượt xem

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.




Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

try following

ALTER DATABASE database_name OWNER TO user_name;

Python Brains

Ảnh đại diện
Huỷ bỏ
Tác giả

I tried the above query. But nothing changed.

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

Câu trả lời hay nhất

Did you figure out what problem was?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 25
1503
2
thg 11 24
6456
2
thg 10 24
3456
2
thg 8 24
1996
3
thg 7 24
8386