Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YozRV-0000pP-Og for pgsql-bugs@arkaria.postgresql.org; Sun, 03 May 2015 19:20:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YozRU-0001k2-Ue for pgsql-bugs@arkaria.postgresql.org; Sun, 03 May 2015 19:20:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YozRT-0001i7-P3 for pgsql-bugs@postgresql.org; Sun, 03 May 2015 19:20:43 +0000 Received: from nm28-vm5.bullet.mail.ne1.yahoo.com ([98.138.91.250]) by makus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YozRQ-0002MA-UN for pgsql-bugs@postgresql.org; Sun, 03 May 2015 19:20:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1430680839; bh=cyX7lZrpE3sbLLt9bYDuWAOsjdQxFMFXQQ5so0nc74s=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=MWZ6yHIPgufvgLSv89s0qcKFdGmrzdwbTGxrj5WZbTizDOD5HSNfCeJlGAWMvSCoIDPCgSQlEEFAwGTpbRH91qfB+P18fuKeVGlG9XnM8K6kj3G9A0AWzhl3vhvFn7GEHypB3YRmkUWAgkYI3pm8+Ztsbh1mzhcrOnIUVF4nHRY2/vVxNRM4QuUUzOH8exkVL+/vs6mTZc+P+jCCbP4CSfYlJKtZ/binsaxnp2srHRyK282tjZdsjzpbDm1sp7665wS31+zndjly3UqKJKrIsGWmlC7/7ENlQ2bLDUyVUym/CH7v+lTW5AqhteKd2Wykwt1jBPNgRWcmxAlZf/m48A== Received: from [98.138.100.113] by nm28.bullet.mail.ne1.yahoo.com with NNFMP; 03 May 2015 19:20:39 -0000 Received: from [98.138.89.197] by tm104.bullet.mail.ne1.yahoo.com with NNFMP; 03 May 2015 19:20:39 -0000 Received: from [127.0.0.1] by omp1055.mail.ne1.yahoo.com with NNFMP; 03 May 2015 19:20:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 795447.96370.bm@omp1055.mail.ne1.yahoo.com X-YMail-OSG: QIjZuJMVM1mPI6axF_R2PDDJQs0Z_sUJGDq423Xw0QHfnpsk4Y2xer1F7r1IMnt Snz0jJE1D0vc7sTvnpsVZiJdv6YIiBFdg8H.XdqZYFECgUPfECotEg39qRIjtY2nn_O54SS5eH_l 6q8m6Y2CaeEmwrR1llDaGODHUXwjvakEFdt8sLmHuIPNJz9qrG7EgwKm4lFr13Ynm7NbKOD98KWI f3eYsGS2eCWyqQI.FLNsEWg67dfe_4KLJscC0Q4tiDNB3j.3ix0hbiEu.fgLTocQ_aoHSLM7z8cN I6UvMtygkCEnHsvC5lWWPP.0S.w4IvQrAqdJ2DTsZb8HhyHPPGZtjdSbF50uC7uG5RPmbllGqJ4Z g8PW1wr_VVWNAf3lraCcQADNnEyFRW2Id8wM0VlehtVgMOkY2Ws07tSn2.wgwUv7cfNmQJf8Sq_K TeOUUfNEJ5.i8yDIpSrVxZROUcgsGaSe8YvMiCL6SjD9Ou9gqTDhdKwtsUyfpSO8qgwm.wI8b8Hm PamPb_VQ7TzOI4.sbxGdR.A-- Received: by 98.138.105.253; Sun, 03 May 2015 19:20:39 +0000 Date: Sun, 3 May 2015 19:20:38 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Kevin Grittner , Tom Lane Cc: Robert Haas , Jeff Davis , Postgres-Bugs Message-ID: <691275181.611927.1430680838706.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <1850649255.594603.1430679374313.JavaMail.yahoo@mail.yahoo.com> References: <1850649255.594603.1430679374313.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: 553 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: > The spec section 6.11 1) c) very explicitly requires > COALESCE(NULL, NULL) > be the exact equivalent of > CASE WHEN NULL IS NOT NULL THEN NULL ELSE NULL END > > Yet in PostgreSQL the long form of the CASE clause returns the > same thing as a bare NULL, while the short form (COALESCE) gives > an error. Never mind; I got confused in my testing -- they both return NULL of type text. I'll dig on that one some more. -- 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