Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFxJl-0000Tc-QP for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Oct 2018 08:18:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gFxJj-0002zt-N7 for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Oct 2018 08:18:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFxJY-00025d-N4 for pgsql-bugs@lists.postgresql.org; Fri, 26 Oct 2018 08:17:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gFxJV-0003dK-7r for pgsql-bugs@lists.postgresql.org; Fri, 26 Oct 2018 08:17:50 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9Q8Hc0J028199; Fri, 26 Oct 2018 04:17:39 -0400 From: Tom Lane To: Andres Freund cc: Fabien COELHO , elprans@gmail.com, PostgreSQL Bugs Subject: Re: BUG #15458: pg_typeof inconsistency on negative integer constant limits In-reply-to: <20181026062430.653yvpzjweuketkb@alap3.anarazel.de> References: <15458-632e422e26e19786@postgresql.org> <20181024205432.yh2jswtvbhl3x536@alap3.anarazel.de> <20181026062430.653yvpzjweuketkb@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 25 Oct 2018 23:24:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23654.1540541835.1@sss.pgh.pa.us> Date: Fri, 26 Oct 2018 09:17:38 +0100 Message-ID: <23665.1540541858@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2018-10-26 08:02:59 +0200, Fabien COELHO wrote: >> The error message may be nicer by expliciting the offending string, and/or >> locating it precisely within the query? > Including the string would make the function not leak proof though, so > that seems like a no-go. Location would be possible, but there's some > architectural issues around doing so at execution time - we only really > have the setup to do so at parse time currently. Tom was looking to > change that at some point however, iirc. Yeah. That project was on hold till you got done whacking expression execution around; but if that's about finished, I might take another look. regards, tom lane