Robert Haas <robertmhaas@gmail.com> writes:
> Or, maybe there's a way to throw an error when serializable mode is
> used rather than when it's requested.
Couldn't we check and throw an error at the place in transaction startup
where default_transaction_isolation is copied to the active variable?
regards, tom lane