Recently, I refreshed one of non-prod environments with production database and I ran into this problem or rather unforeseen point that I cannot change the system catalogs ownership to the respective non prod owner account. And I really don't want to tamper the system catalogs in any manner. Is there a solution for this?
PostgreSQL 10 and barman 2.4 on rhel 7 is my environment.