Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yozas-0001QD-Bt for pgsql-bugs@arkaria.postgresql.org; Sun, 03 May 2015 19:30:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yozar-0003dM-Sz for pgsql-bugs@arkaria.postgresql.org; Sun, 03 May 2015 19:30:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yozar-0003dG-9n for pgsql-bugs@postgresql.org; Sun, 03 May 2015 19:30:25 +0000 Received: from nm24-vm0.bullet.mail.ne1.yahoo.com ([98.138.90.34]) by magus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yozan-0002sR-Qf for pgsql-bugs@postgresql.org; Sun, 03 May 2015 19:30:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1430681419; bh=G57HBBWtmGr4M/pJmjILmg4ANHFYEvRuhKQkuWZjvXY=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=TSwSa29lnlBvFOeoX0+U6mqrL2aIkF9VWmFt1/OkLi52Gfwo9wOyCsjSz9zoM6AQRCJp1ECgzdkmKV6xM7XohXCDaR1thPB4Cdi9u57aZtiuaHeWF92NAr+RTS8YMKiJnrzF0YPVzEQcwXpowVbNG56UlGk42oA5HLhheEzinYI1iIbDuZrI0wzA9yfpyequAKqDDBmcfsCWimpu+lof+aOaOSIjMtJTgAg020ZHZ/LDUirTzzVWA2wzezngNV/DHfzF+W3K/Yd5XZhkRZ+VYfPdujIOsqweUh7eCqDFnsio0DIdZm8gzs5qeaiogbWzRmjIpLwOtR+47QV8uR2V8Q== Received: from [98.138.100.116] by nm24.bullet.mail.ne1.yahoo.com with NNFMP; 03 May 2015 19:30:19 -0000 Received: from [98.138.86.157] by tm107.bullet.mail.ne1.yahoo.com with NNFMP; 03 May 2015 19:30:19 -0000 Received: from [127.0.0.1] by omp1015.mail.ne1.yahoo.com with NNFMP; 03 May 2015 19:30:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 252197.89383.bm@omp1015.mail.ne1.yahoo.com X-YMail-OSG: maitifcVM1m3dGXRLz.7sCYtfynHI5SjnJzPGnVBQ68R7s0HLps3Lq5cnZTl2p0 zr961kzhXsliM4HeZrvceM6CZVPeNsEZOFFVgX8nmAfgAQuD4mSB_IoiziDL1p6JofkZdkCmephj 7tOyMro1pkTnCZ1frkGSEg6LMOUzc.Qa2oL3O.LdFN_t3ykzt6GcmaNZKj0UXqPsqxPwwSBIiU37 vXKJAuMH1u4eFWitfgEANrBS7jPRu9MJ5yZTxa5XlS8aPF08eIz_VVPnYG7XKZz82HB1jIug8M8a A7nIAKHQ_B8LRp1ztUPonBuBunfxolAmLl9zK50YCWu42ivuJiePCFtRq_GfTt2Rf0jVYrznE53w Yvp2xyDMUiynHgaAKcdyPECLmZryyIcYhobS8EXmDAURxZ4QSFBAhk4ldxFNCSDtvo_59.pBESHH bJMi7iJ.HY6FIXGknz8z4DSg6lTU2B3jH_tBauaJ.fykRkhaB6kvf6rgiJc35x6_iqMiZ4nrz879 m6RNV12UWE9KP6IcsNu5Ll1vy8t90dGnJ.hcVfNs.dRTaECz5jUAAEZmzJw-- Received: by 98.138.101.183; Sun, 03 May 2015 19:30:18 +0000 Date: Sun, 3 May 2015 19:29:55 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Kevin Grittner , Tom Lane Cc: Robert Haas , Jeff Davis , Postgres-Bugs Message-ID: <2007003193.618271.1430681395388.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <691275181.611927.1430680838706.JavaMail.yahoo@mail.yahoo.com> References: <691275181.611927.1430680838706.JavaMail.yahoo@mail.yahoo.com> Subject: Re: Failure to coerce unknown type to specific type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 859 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Kevin Grittner wrote: > they both return NULL of type text. Section 9.3, which the definition of COALESCE references as the way to resolve type conflicts *starts* with this: | Let IDTS be the set of data types specified in an application of | this Subclause. Let DTS be the set of data types in IDTS | excluding any data types that are undefined. If the cardinality | of DTS is 0 (zero), then the result data type is undefined and no | further Rules of this Subclause are evaluated. That's pretty unambiguous that a COALESCE(NULL, NULL) clause should yield a NULL with the data type undefined. So, if we're going by the SQL spec, that is what it would take to conform. It's hardly a crisis that we don't conform on this point, but it is a fact. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs