Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YPd7b-0000VR-RO for pgsql-general@arkaria.postgresql.org; Sun, 22 Feb 2015 20:27:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YPd7b-0006gc-9F for pgsql-general@arkaria.postgresql.org; Sun, 22 Feb 2015 20:27:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YPd7Y-0006dG-UC for pgsql-general@postgresql.org; Sun, 22 Feb 2015 20:27:21 +0000 Received: from ow5p.x.rootbsd.net ([208.79.81.114] helo=mx1.yitter.info) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YPd7V-0004Uk-Vg for pgsql-general@postgresql.org; Sun, 22 Feb 2015 20:27:19 +0000 Received: from crankycanuck.ca (unknown [50.189.173.0]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.yitter.info (Postfix) with ESMTPSA id 796D48A035 for ; Sun, 22 Feb 2015 20:27:15 +0000 (UTC) Date: Sun, 22 Feb 2015 15:27:13 -0500 From: Andrew Sullivan To: pgsql-general@postgresql.org Subject: Re: express composite type literal as text Message-ID: <20150222202713.GL18747@crankycanuck.ca> References: <31376.1424634472@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org On Sun, Feb 22, 2015 at 12:18:21PM -0800, Eric Hanson wrote: > Got it. Ok, I'm reporting this as a bug. Is this a bug? Being able to > always express literals as text is a really valuable assumption to be able > to rely on. If I had to guess (I guess someone more authoritative than I will chime in), I suspect this is a side effect of the change a few years ago that removed a very large number of automatic typecasts. Experience with those automatic typecasts revealed that while they were handy lots of the time, when they failed they did really bad things. So the developers dramatically reduced the number of such cases. Some convenience was lost (I still get tripped up from time to time, but I'm not doing Pg work every day), but the overall reliability of things was increased. So I'd say it's probably not a bug. A -- Andrew Sullivan ajs@crankycanuck.ca -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general