Thanks, Dan. Sorry, I was thinking IMMUTABLE functions were only not allowed to write to the DB, but that was an incorrect recollection. In this case, STABLE seems sufficient to solve the problem, and I don't think it suffers from the same issues. I will update the original description.
Thanks, Dan. Sorry, I was thinking IMMUTABLE functions were only not allowed to write to the DB, but that was an incorrect recollection. In this case, STABLE seems sufficient to solve the problem, and I don't think it suffers from the same issues. I will update the original description.