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

From Tom Lane
Subject Re: Adding a typmod field to Const et al
Date
Msg-id 28419.1174092372@sss.pgh.pa.us
Whole thread Raw
In response to Re: Adding a typmod field to Const et al  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> 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

No, because the result of the || operator won't have a specific typmod.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Adding a typmod field to Const et al
Next
From: Gaetano Mendola
Date:
Subject: Re: Lock table in non-volatile functions