콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
9006 화면

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
6473
2
10월 24
3461
2
8월 24
1996
3
7월 24
8388