Fix some compatibility with PostgreSQL

Also add varchar/text/bpchar operator class support