I am in a process of upgrading postgresql from version 12 to 13 using pg_upgrdrade but I am getting error stating
FATAL: database files are incompatible with server DETAIL: The data directory was initialized by PostgreSQL version 13 , which is not compatible with this version 12.14 (Ubuntu 12.14-1.pgdg18.04+1)