"" <danielb@megasystems.us> writes:
> For some reason, POSTGRESQL does not evaluate ((put_the_in_city_online =
> FALSE) = true) correctly.
This is pretty hard to believe, and you're not going to get anyone to
think it's anything except pilot error unless you provide a complete,
reproducible example. Selectively quoting from your function does not
provide anything anyone could investigate. Please see
http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
regards, tom lane