run_system_catalog_as_temp_table overwrites entry in pg_database