Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A006D1337B54 for ; Sun, 5 Dec 2010 15:15:45 -0400 (AST) 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 02487-04 for ; Sun, 5 Dec 2010 19:15:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.213.174]) by mail.postgresql.org (Postfix) with ESMTP id E5F171336FA7 for ; Sun, 5 Dec 2010 15:15:37 -0400 (AST) Received: by yxt3 with SMTP id 3so5125444yxt.19 for ; Sun, 05 Dec 2010 11:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=hRduTxDNE+aDVaxYH6u7wC1E5aKun/3GA4a2bm/zHBE=; b=vw7J6H/oKnQpOnzo1mAkL1S38Ir4RsvHr5DLxfH3L6Y+7B4SmSWn48c+T56TGbv2ZR W2YdL792LrgosUVv+NDS6Wg1OCOGf90syv7qLv/ulpi9IdQhZGktIumN/H6JV2GJjKo/ 5bDQ4oEu7M0iAMOSC6o5uFnbE44Nk0mxDag+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=vXBXAb+HeOJ3LBKJustR0SLPcKX96n6wH3k/TmfImHo7+8GdPHh5cDjcPtbBS6vb9W MwSComSILIMuD4ijaWUH6MfRfMDLbPYr+9OKOAhZ/5pMpCC9l9Z8kgX83dB29LH2qkCP NU6CM3I9lhnSwqjnXeqrpI/GMg/bPoZ1lOjnY= Received: by 10.100.96.1 with SMTP id t1mr2811912anb.137.1291576537435; Sun, 05 Dec 2010 11:15:37 -0800 (PST) Received: from tucker.local (c-24-17-164-54.hsd1.wa.comcast.net [24.17.164.54]) by mx.google.com with ESMTPS id 35sm4502567ano.31.2010.12.05.11.15.35 (version=SSLv3 cipher=RC4-MD5); Sun, 05 Dec 2010 11:15:36 -0800 (PST) From: Adrian Klaver Reply-To: adrian.klaver@gmail.com To: Peter Eisentraut Subject: Re: BUG #5783: plpythonu bool behavior change Date: Sun, 5 Dec 2010 11:15:34 -0800 User-Agent: KMail/1.9.10 Cc: pgsql-bugs@postgresql.org References: <201012050025.oB50PRwx076625@wwwmaster.postgresql.org> <1291569006.10677.0.camel@vanquo.pezone.net> In-Reply-To: <1291569006.10677.0.camel@vanquo.pezone.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201012051115.34553.adrian.klaver@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201012/43 X-Sequence-Number: 28849 On Sunday 05 December 2010 9:10:06 am Peter Eisentraut wrote: > On s=C3=B6n, 2010-12-05 at 00:25 +0000, Adrian Klaver wrote: > > Seems there was a change in behavior for plpythonu with regards to > > boolean fields from 8.4 to 9.0. Previously, setting a field inside a > > plpythonu function to "f" would work, now that returns a 't' in the > > database field. To get the 'f' to appear I have to specify False > > inside the function. > > That change was intentional. Alright my mistake, I finally went past the release notes and read the new= docs=20 for plpythonu. I see the changes. I do not agree with them, but I should ha= ve=20 paid more attention in the dev process. The value is being returned to the= =20 database and should play by the database rules or at least be flagged. I wi= ll=20 make the necessary changes on my end. Thanks, =2D-=20 Adrian Klaver adrian.klaver@gmail.com