Roy Badami <[EMAIL PROTECTED]> writes: > Tom> Yes. The ISO design for the datatype is pretty brain-dead if > Tom> you ask me --- the basic meaning of a data literal shouldn't > Tom> be so dependent on context.
> Arguably it's not, because the interval qualifier is an intrinsic (and > mandatory) part of the literal syntax, so the full ISO interval is > completely unambigous. Well, it's okay *in the context of an interval literal*, where everything you need to know is right there, even if some of it is inside the quotes and some isn't. The problem comes as soon as you consider external data representations --- if you consider the bit inside the quotes to be the preferred textual representation, then you have a situation where you can't interpret the value without context information that's not directly attached to the data. This is why I say it's ambiguous. As you point out, the ISO spec doesn't actually say that that string literal has to be the external textual representation ... but it's surely pretty bizarre that it's not a good candidate to be the textual representation. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend