Closed Torxed closed 1 week ago
I should probably have read the sections after how to import as it contained some tips.
Unzipping the sql dump and ran sed
over it fixed it:
$ sed -i 's/ALTER SCHEMA public OWNER TO postgres;/ALTER SCHEMA public OWNER TO pg_database_owner;/g' synapse_2024_11_02.sql
pg_database_owner
appears to be the legit owner of the database, rather than something more standard. so it's not a placeholder. And the operation might be slow if the database is big.
Apologies for the noise!
Describe the bug Trying to import a matrix server that's lived for almost 10 years now. And the postgresql data is quite old, which might play a role here.
Matrix Server:
Additional context
I suspect it's just a matter of
grep -vE '^(CREATE|ALTER) SCHEMA public ?'
or something similar.