pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Jeff Wu <jwu@atlassian.com>
Cc: Mike Fowler <mike@mlfowler.com>
Cc: pgsql-bugs@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: BUG #5974: UNION construct type cast gives poor error message
Date: Thu, 21 Apr 2011 10:33:59 -0500
Message-ID: <4DB00817020000250003CB3C@gw.wicourts.gov> (raw)
In-Reply-To: <BANLkTimXh0jHCxED=KL8BcYN5CnyrxkP-Q@mail.gmail.com>
References: <201104122018.p3CKIlWR042915@wwwmaster.postgresql.org>
	<9799.1302719551@sss.pgh.pa.us>
	<4DA711B6.4060306@mlfowler.com>
	<4DA6D50E020000250003C83A@gw.wicourts.gov>
	<4DA72529.7080505@mlfowler.com>
	<4DA720B8020000250003C856@gw.wicourts.gov>
	<21368.1302817680@sss.pgh.pa.us>
	<4DA72B4A020000250003C85D@gw.wicourts.gov>
	<BANLkTimXh0jHCxED=KL8BcYN5CnyrxkP-Q@mail.gmail.com>

Jeff Wu <jwu@atlassian.com> wrote:
 
> what needs to happen to get this fix in?
 
Well, "fix" implies that there is a bug, which there isn't.  The
current behavior doesn't violate the requirements of the standard,
nor is it a regression from the behavior of any previous PostgreSQL
release.  What we're talking about is a request for enhancement --
to return results for cases in which the standard allows an error to
be thrown.
 
Enhancements are not applied to stable branches, and the 9.1 release
has been in feature freeze for months now, so the earliest release
we'd probably consider is 9.2.
 
If there are no objections I'll add this to the TODO Wiki page with
a reference to Tom's description of how it should be implemented.  I
didn't get the sense from the discussion that this is one which
should be marked "easy" -- agreed?
 
In the meantime, the workaround is to explicitly cast quoted
literals and nulls in the result list of a set operation like UNION.
 
-Kevin



view thread (20+ messages)  latest in thread

Message-ID: <4DB00817020000250003CB3C@gw.wicourts.gov>
Permalink:  ../4DB00817020000250003CB3C@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DB00817020000250003CB3C@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, jwu@atlassian.com, mike@mlfowler.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #5974: UNION construct type cast gives poor error message
  In-Reply-To: <4DB00817020000250003CB3C@gw.wicourts.gov>
  References: <201104122018.p3CKIlWR042915@wwwmaster.postgresql.org> <9799.1302719551@sss.pgh.pa.us> <4DA711B6.4060306@mlfowler.com> <4DA6D50E020000250003C83A@gw.wicourts.gov> <4DA72529.7080505@mlfowler.com> <4DA720B8020000250003C856@gw.wicourts.gov> <21368.1302817680@sss.pgh.pa.us> <4DA72B4A020000250003C85D@gw.wicourts.gov> <BANLkTimXh0jHCxED=KL8BcYN5CnyrxkP-Q@mail.gmail.com> <4DB00817020000250003CB3C@gw.wicourts.gov>

* 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