Hopefully a simple question, but one for which I haven\'t readily found a decent answer. I\'m reliably informed that stored procedures (user-defined DB functions) in Postgre
What you could do is have your function check what the current transaction isolation level is and abort if it's not the one you want. You can do this by running SELECT current_setting('transaction_isolation') and then checking the result.