Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
8994 Переглядів

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?

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
лип. 25
1503
2
лист. 24
6452
2
жовт. 24
3456
2
серп. 24
1994
3
лип. 24
8385