Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmghD-0000QW-Ke for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 15:13:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmghC-0002pp-8D for pgsql-general@arkaria.postgresql.org; Thu, 24 Jan 2019 15:13:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmghB-0002iA-Ra for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 15:13:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgh9-0006U9-BO for pgsql-general@lists.postgresql.org; Thu, 24 Jan 2019 15:13:32 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0OFBMwD017454; Thu, 24 Jan 2019 10:11:22 -0500 From: Tom Lane To: Geoff Winkless cc: "David G. Johnston" , Alexandre GRAIL , "pgsql-generallists.postgresql.org" Subject: Re: Casting Integer to Boolean in assignment In-reply-to: References: Comments: In-reply-to Geoff Winkless message dated "Thu, 24 Jan 2019 15:05:35 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17452.1548342682.1@sss.pgh.pa.us> Date: Thu, 24 Jan 2019 10:11:22 -0500 Message-ID: <17453.1548342682@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Geoff Winkless writes: > On Thu, 24 Jan 2019 at 14:28, David G. Johnston > wrote: >> To assist developers in avoiding the writing of buggy queries. > Amazing how many of these developers find this a hindrance. If only > they could see how helpful we're being to them. People don't generally post to the lists after a type-mismatch error catches a typo for them. So it's pretty hard to tell about "how many" developers would find one behavior more useful than the other. It is safe to say, though, that the same developer complaining today might have their bacon saved tomorrow. regards, tom lane