Don't error out on warnings during db restore
Proposal
Add warnings to the list of ignored errrors in https://gitlab.com/gitlab-org/gitlab/-/blob/257459cd648bb7bbb8395893e831bee9e99b102c/lib/backup/database.rb#L11
Currently db restore fails if anything other than ignored errors reach stderr. In addition to the current ignores, its also common to see
WARNING: no privileges could be revoked for "public"
WARNING: no privileges were granted for "public"
When restoring via a non admin postgres user. (If the public schema is different between the backup and the database being restored into).
We should probably add WARNING
s to the ignore list.
(Encountered in gitlab-org/charts/gitlab#2801 (closed)_