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 1fBIzu-0003S0-Ce for pgsql-general@arkaria.postgresql.org; Wed, 25 Apr 2018 11:54:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fBIzt-000087-CQ for pgsql-general@arkaria.postgresql.org; Wed, 25 Apr 2018 11:54:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fBIzt-00007y-4L for pgsql-general@lists.postgresql.org; Wed, 25 Apr 2018 11:54:05 +0000 Received: from ook.raf.org ([139.99.156.21]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fBIzq-00034S-Le for pgsql-general@lists.postgresql.org; Wed, 25 Apr 2018 11:54:04 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 7BA6C5E4EB for ; Wed, 25 Apr 2018 21:54:01 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VUgGGTA6AaO4 for ; Wed, 25 Apr 2018 21:54:01 +1000 (AEST) Received: by ook.raf.org (Postfix, from userid 1001) id 5BCC65E51D; Wed, 25 Apr 2018 21:54:01 +1000 (AEST) Date: Wed, 25 Apr 2018 21:54:01 +1000 From: raf To: pgsql-general@lists.postgresql.org Subject: Re: Inconsistent compilation error Message-ID: <20180425115401.haap5gwtgww5iw5g@raf.org> References: <20180419010228.jcogqkeu2b7bxh2q@raf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David G. Johnston wrote: > On Wed, Apr 18, 2018 at 7:04 PM, Melvin Davidson > wrote: > > > > > Normally, literals are inside the first quotes. IE: raise notice ' > > blah_history.original_id' %', r; > > > > ​But a compiler doesn't care about human concepts like "normally" - it just > cares about "syntactically correct" and as David and Tom observe the > original post as visually observed is correct. Which leads one to think > that reality and the original post somehow don't match, or as Tom said what > the server sees and what is sent end up being different (client encoding > issues or some such). > > And pretty sure "r" being NULL just puts an empty string where the % is. > > David J. passing a null value to raise notice outputs it as the string "NULL".