Re: Adding a typmod field to Const et al
Greg Stark <stark@enterprisedb.com>
From: Gregory Stark <stark@enterprisedb.com>
To: "Tom Lane" <tgl@sss.pgh.pa.us>
Cc: <pgsql-hackers@postgreSQL.org>
Date: 2007-03-17T00:39:24Z
Lists: pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.us> writes: > ArrayExpr: should adopt the same behavior as Coalesce and > similar nodes, ie, if all the elements show the > same type/typmod then return that typmod > instead of -1 ... > Comments, objections? I'm not entirely convinced by this one. Does that mean expressions like this would throw an error if col1 was declared as a numeric(1)? ARRAY[col1] || 10 -- Gregory Stark EnterpriseDB http://www.enterprisedb.com