Joe Carr <joe(dot)carr(at)gmail(dot)com> writes:
> Thanks for the link. I've done some more reading, and now it appears
> impossible to set the isolation level of a transaction from within a
> function.
That's correct. By the time the function gets control, you're already
inside the transaction; it's too late to change its isolation level.
regards, tom lane