"Kevin Grittner" <kevin.gritt...@wicourts.gov> writes:
> Because COALESCE(NULL, NULL) has given no indication that it is
> character based, while 'x' is defined by the standard to be a
> character string literal.  The two uses of "unknown" in typing seem to
> be solving different problems.  Perhaps using the same flag for both
> is part of the problem.  The above was suggesting we differentiate.

I've always thought that having the type system treat NULL and 'foo'
alike was a feature, not a bug.  In a formal sense the type information
available is the same, ie, none.  The argument that SQL says 'foo'
must be character, so we should too, is greatly weakened by the fact
that SQL has such an impoverished set of built-in types.  If we want
to treat user-defined types as anything approaching first-class types,
we have to be pretty suspicious of that restriction.

                        regards, tom lane

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply via email to