pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-general@postgresql.org
Subject: Re: express composite type literal as text
Date: Sun, 22 Feb 2015 15:27:13 -0500
Message-ID: <20150222202713.GL18747@crankycanuck.ca> (raw)
In-Reply-To: <CACnWs=X8zDyoO4M5X7AduB_mSw6Uw6cOSZ-ZismN2rK0E420nQ@mail.gmail.com>
References: <CACnWs=Xu-GtcksqVbt4gTMdMM8_4Wfhwno_70JNOPvXSbh9=2g@mail.gmail.com>
	<31376.1424634472@sss.pgh.pa.us>
	<CACnWs=X8zDyoO4M5X7AduB_mSw6Uw6cOSZ-ZismN2rK0E420nQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

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



view thread (9+ messages)  latest in thread

Message-ID: <20150222202713.GL18747@crankycanuck.ca>
Permalink:  ../20150222202713.GL18747@crankycanuck.ca/
Also on:    postgresql.org/message-id/20150222202713.GL18747@crankycanuck.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ajs@crankycanuck.ca, pgsql-general@postgresql.org
  Subject: Re: express composite type literal as text
  In-Reply-To: <20150222202713.GL18747@crankycanuck.ca>
  References: <CACnWs=Xu-GtcksqVbt4gTMdMM8_4Wfhwno_70JNOPvXSbh9=2g@mail.gmail.com> <31376.1424634472@sss.pgh.pa.us> <CACnWs=X8zDyoO4M5X7AduB_mSw6Uw6cOSZ-ZismN2rK0E420nQ@mail.gmail.com> <20150222202713.GL18747@crankycanuck.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox