Re: 7.3.3 array_out tweak - Mailing list pgsql-general

From Tom Lane
Subject Re: 7.3.3 array_out tweak
Date
Msg-id 9064.1059401512@sss.pgh.pa.us
Whole thread Raw
In response to 7.3.3 array_out tweak  (Thien-Thi Nguyen <ttn@glug.org>)
Responses Re: 7.3.3 array_out tweak  (Thien-Thi Nguyen <ttn@glug.org>)
List pgsql-general
Thien-Thi Nguyen <ttn@glug.org> writes:
> regarding previous grousing regarding array output not being
> consistently quoted, what do you think of the following patch?
> it jams `nq' when the `typbyval' is not `true' on the presumption
> that typbyval is a good way to distinguish numeric/non-numeric.

That was what the pre-7.2 coding did, and it was broken.  Types abstime
and "char" are counterexamples in one direction, and float8 and numeric
are counterexamples in the other.  (And that's not even considering
user-defined datatypes.)  We are not going back to that.

            regards, tom lane

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: psql -e
Next
From: "Aspire"
Date:
Subject: Re: Jabber Interface