I'm trying to upgrade a database that has postgis installed in it. Since the container doing the upgrade doesn't have postgis installed in it it gives this error:
pg_dump: error: query failed: ERROR: could not access file "$libdir/postgis-3": No such file or directory