I am getting this error when executing this function: "could not open relation with OID 327969" The functions works correctly in Postgres 10.6 but throwing this error