Ah. I misunderstood the comment before the failing opr_sanity test. Here's an updated patch, which also adds some regression tests.
Thanks, applied with a few tweaks.
-Neil
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org