-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
click-odoo-backupdb: dump does not exlude non public data #37
Comments
This change fixes it: Do you have access to a database expert to enlighten under what exact circumstances this is not risk free (other than using custom schema names, which not even sure is supported or not by odoo)? |
The offending lines in the dump are:
Note the CREATE is not the one that throws. I'm doing:
which shows that the extension pre-exists on the database. Yet commenting is forbidden. |
Yea, make the database user Superuser, I know. But I don't intent to do that. |
Can we close this? I don't see any bug nor feature request so far. |
Feel free to adapt this. I just wanted to feed back my findings over here. |
My only question is: does click-odoo-backupdb produce the same output as the regular Odoo backup:
|
@sbidoul we produce the same output as the regular Odoo backup https://github.com/odoo/odoo/blob/12.0/odoo/service/db.py#L212 |
Ok I close then. @blaggacao reopen with a proper bug description if you believe there is a bug (or better, open one at Odoo if it's related to the Odoo backup format). |
@sbidoul you're right it's probably a "inconvenience" with the way odoo does it. Odoo, to my knowledge, does not ever use another than the public schema. So I understand it being an implicit design decision, however, Odoo does not comply with this purported decision in their backup implementation. Standard Odoo notoriety... 😉 |
@sbidoul @blaggacao I reopen this issue since it seems that the errors into travis for #38 are related to this issue. |
https://stackoverflow.com/questions/10169203/postgresql-9-1-pg-restore-error-regarding-plpgsql
debugging output:
The text was updated successfully, but these errors were encountered: