Hi @DreamDweller
Which version did you upgrade from?
Did you also change something on Postgres, while upgrading Metabase? Which version of Postgres?
As far as I remember, when you create a temporary table in Postgres, it still needs to write information to pg_class, pg_attribute and probably other system tables.