Upgrade 20 -> 21, PostgreSQL 12 -> 13: Doctrine error

Nextcloud version: Upgrade to 21 from 20.0.5
Operating system and version: Fedora 33
Apache: 2.4.46
PHP version: 7.4.15
PostgreSQL: 13 (upgraded from 12)

# sudo -u apache php occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
OC\DB\Exceptions\DbalException: Unknown database type oid requested, Doctrine\DBAL\Platforms\PostgreSQL100Platform may not support it.
Update failed
Maintenance mode is kept active
Resetting log level

nextcloud.log:

{"reqId":"1CVcvANjrYgFlRrT7Icy","level":0,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 20.0.5.2 to 21.0.0.18","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair MySQL collation","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::info: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::info: Repair info: Not a mysql database -> nothing to do","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair SQLite autoincrement","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Copy data from accounts table when migrating from ownCloud","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":3,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":{"Exception":"OC\\DB\\Exceptions\\DbalException","Message":"Unknown database type oid requested, Doctrine\\DBAL\\Platforms\\PostgreSQL100Platform may not support it.","Code":0,"Trace":[{"file":"/var/www/cloud/server21/lib/private/DB/ConnectionAdapter.php","line":231,"function":"wrap","class":"OC\\DB\\Exceptions\\DbalException","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Exception"}]},{"file":"/var/www/cloud/server21/lib/private/Repair/Owncloud/SaveAccountsTableData.php","line":102,"function":"createSchema","class":"OC\\DB\\ConnectionAdapter","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/Repair/Owncloud/SaveAccountsTableData.php","line":70,"function":"shouldRun","class":"OC\\Repair\\Owncloud\\SaveAccountsTableData","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/Repair.php","line":117,"function":"run","class":"OC\\Repair\\Owncloud\\SaveAccountsTableData","type":"->","args":[{"__class__":"OC\\Repair"}]},{"file":"/var/www/cloud/server21/lib/private/Updater.php","line":247,"function":"run","class":"OC\\Repair","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/Updater.php","line":132,"function":"doUpgrade","class":"OC\\Updater","type":"->","args":["21.0.0.18","20.0.5.2"]},{"file":"/var/www/cloud/server21/core/Command/Upgrade.php","line":255,"function":"upgrade","class":"OC\\Updater","type":"->","args":[]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Upgrade","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"installer":{"__class__":"OC\\Installer"},"__class__":"OC\\Core\\Command\\Upgrade"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/lib/private/Console/Application.php","line":215,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/cloud/server21/occ","line":11,"args":["/var/www/cloud/server21/console.php"],"function":"require_once"}],"File":"/var/www/cloud/server21/lib/private/DB/Exceptions/DbalException.php","Line":70,"Previous":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Unknown database type oid requested, Doctrine\\DBAL\\Platforms\\PostgreSQL100Platform may not support it.","Code":0,"Trace":[{"file":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Schema/PostgreSQLSchemaManager.php","line":355,"function":"getDoctrineTypeMapping","class":"Doctrine\\DBAL\\Platforms\\AbstractPlatform","type":"->","args":["oid"]},{"file":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php","line":826,"function":"_getPortableTableColumnDefinition","class":"Doctrine\\DBAL\\Schema\\PostgreSQLSchemaManager","type":"->","args":[{"attnum":1,"field":"reloid","type":"oid","complete_type":"oid","collation":null,"domain_type":null,"domain_complete_type":null,"isnotnull":true,"pri":"t","default":null,"comment":null,"name":""}]},{"file":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php","line":172,"function":"_getPortableTableColumnList","class":"Doctrine\\DBAL\\Schema\\AbstractSchemaManager","type":"->","args":["pgpool_catalog.insert_lock","cloud",[{"attnum":1,"field":"reloid","type":"oid","complete_type":"oid","collation":null,"domain_type":null,"domain_complete_type":null,"isnotnull":true,"pri":"t","default":null,"comment":null}]]},{"file":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php","line":276,"function":"listTableColumns","class":"Doctrine\\DBAL\\Schema\\AbstractSchemaManager","type":"->","args":["pgpool_catalog.insert_lock"]},{"file":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Schema/PostgreSQLSchemaManager.php","line":512,"function":"listTableDetails","class":"Doctrine\\DBAL\\Schema\\AbstractSchemaManager","type":"->","args":["pgpool_catalog.insert_lock"]},{"file":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php","line":261,"function":"listTableDetails","class":"Doctrine\\DBAL\\Schema\\PostgreSQLSchemaManager","type":"->","args":["pgpool_catalog.insert_lock"]},{"file":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php","line":1074,"function":"listTables","class":"Doctrine\\DBAL\\Schema\\AbstractSchemaManager","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/DB/Migrator.php","line":188,"function":"createSchema","class":"Doctrine\\DBAL\\Schema\\AbstractSchemaManager","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/DB/Connection.php","line":511,"function":"createSchema","class":"OC\\DB\\Migrator","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/DB/ConnectionAdapter.php","line":229,"function":"createSchema","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/Repair/Owncloud/SaveAccountsTableData.php","line":102,"function":"createSchema","class":"OC\\DB\\ConnectionAdapter","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/Repair/Owncloud/SaveAccountsTableData.php","line":70,"function":"shouldRun","class":"OC\\Repair\\Owncloud\\SaveAccountsTableData","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/Repair.php","line":117,"function":"run","class":"OC\\Repair\\Owncloud\\SaveAccountsTableData","type":"->","args":[{"__class__":"OC\\Repair"}]},{"file":"/var/www/cloud/server21/lib/private/Updater.php","line":247,"function":"run","class":"OC\\Repair","type":"->","args":[]},{"file":"/var/www/cloud/server21/lib/private/Updater.php","line":132,"function":"doUpgrade","class":"OC\\Updater","type":"->","args":["21.0.0.18","20.0.5.2"]},{"file":"/var/www/cloud/server21/core/Command/Upgrade.php","line":255,"function":"upgrade","class":"OC\\Updater","type":"->","args":[]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Upgrade","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"installer":{"__class__":"OC\\Installer"},"__class__":"OC\\Core\\Command\\Upgrade"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/lib/private/Console/Application.php","line":215,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/cloud/server21/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/cloud/server21/occ","line":11,"args":["/var/www/cloud/server21/console.php"],"function":"require_once"}],"File":"/var/www/cloud/server21/3rdparty/doctrine/dbal/src/Platforms/AbstractPlatform.php","Line":398},"CustomMessage":"--"},"userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":3,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::failure: OC\\DB\\Exceptions\\DbalException: Unknown database type oid requested, Doctrine\\DBAL\\Platforms\\PostgreSQL100Platform may not support it.","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":3,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"20.0.5.2"}
{"reqId":"1CVcvANjrYgFlRrT7Icy","level":1,"time":"2021-03-06T10:36:26+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"20.0.5.2"}

No relevant entries in Apache, PHP, PostgreSQL and system logs.

I was under the impression that NC 21 would be compatible with PostgreSQL 13 (even though the admin docs still list version 11 as latest supported). Is there anything else I need to do before upgrading?

Thank you!