"Andy Hallam" <ahm@exel.co.uk> writes:
> BUT, if I use the LIKE predicate I have to escape the escape.
> Now this must be treated as a bug.
It's not a bug, it's the defined behavior of LIKE. See
http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/functions-matching.html#FUNCTIONS-LIKE
You might find it more convenient to select a different escape
character for LIKE.
regards, tom lane