Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3C2E1B5DC0F for ; Thu, 21 Jul 2011 19:23:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 92845-06 for ; Thu, 21 Jul 2011 22:23:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 9B3BBB5DC19 for ; Thu, 21 Jul 2011 19:23:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p6LMN0oQ022099; Thu, 21 Jul 2011 18:23:00 -0400 (EDT) To: "" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6128: A boolean variable doesn't evaluate properly in an IF conditional... In-reply-to: <201107211848.p6LImSlt064768@wwwmaster.postgresql.org> References: <201107211848.p6LImSlt064768@wwwmaster.postgresql.org> Comments: In-reply-to "" message dated "Thu, 21 Jul 2011 18:48:28 +0000" Date: Thu, 21 Jul 2011 18:23:00 -0400 Message-ID: <22098.1311286980@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-3.081 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-1.181 X-Spam-Level: X-Archive-Number: 201107/162 X-Sequence-Number: 30774 "" 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