Re: Adding a typmod field to Const et al

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Adding a typmod field to Const et al
Date: 2007-03-17 00:46:12
Message-ID: 28419.1174092372@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gaetano Mendola 2007-03-17 01:17:10 Re: Lock table in non-volatile functions
Previous Message Gregory Stark 2007-03-17 00:39:24 Re: Adding a typmod field to Const et al