A HQL query using an exclusive binary or (bxor or ^) will result in an exponentiation with PostgreSQL.
The Dialect class registers bxor as ^, and this is not overridden in PostgreSQL dialect. But for PostgreSQL, ^ is an exponentiation, xor is #.
(Discovered while adding tests in #1670.)