When trying to create PostGIS extension I am getting this error:
ERROR: cache lookup failed for function 1
I am running PostgreSQL 11 on Ubuntu 16.04. I have installed PostGIS and PostGIS scripts. I managed to create extension on one database but something caused this error so that I can't create it anymore.