MinMaxExpr is an implicit invocation of a btree comparison function.Are we supposing that all of those are necessarily leakproof?
regards, tom lane