Re: Adding a typmod field to Const et al - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Adding a typmod field to Const et al
Date
Msg-id 871wjoln43.fsf@stark.xeocode.com
Whole thread Raw
In response to Adding a typmod field to Const et al  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Adding a typmod field to Const et al  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: Buildfarm feature request: some way to track/classify failures
Next
From: Tom Lane
Date:
Subject: Re: Adding a typmod field to Const et al