Re: BUG #5490: INSERT doesn't force cast from text to timestamp - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5490: INSERT doesn't force cast from text to timestamp
Date
Msg-id 16020.1275922397@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #5490: INSERT doesn't force cast from text to timestamp  (Andy Balholm <andy@balholm.com>)
Responses Re: BUG #5490: INSERT doesn't force cast from text to timestamp  (Andy Balholm <andy@balholm.com>)
List pgsql-bugs
Andy Balholm <andy@balholm.com> writes:
> Is there a way to make values of "undefined" type pass through the
> SELECT DISTINCT filter (getting checked for uniqueness) but remain
> "undefined"

No.  What is your criterion for deciding that two values are distinct?
It's not possible to do that without imputing a data type to them.
(In particular, comparing the character strings amounts to deciding
that they are of a textual data type --- failing to acknowledge that
isn't a workaround but merely sloppy thinking.)

            regards, tom lane

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: BUG #5490: INSERT doesn't force cast from text to timestamp
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] Invalid YAML output from EXPLAIN