The operator <> seems to not work properly comparing citext types in triggers function.
 
https://stackoverflow.com/questions/45441840/posgresql-9-3-operator-doesnt-give-logical-result
 
Can someone figure out what is the problem? This seems like a bug.