Re: RFC for adding typmods to functions - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: RFC for adding typmods to functions
Date
Msg-id 162867790911172256y5e08b67ey799518eb33ea6836@mail.gmail.com
Whole thread Raw
In response to Re: RFC for adding typmods to functions  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
>
> So I guess really can't get worked up about the idea of propagating
> this information through the type system.  Even suppose we eventually
> take the steps you suggesting and make it so that varchar(30) ||
> varchar(40) yields varchar(70).  What good is that?

I see main sense in enhancing warning system in plpgsql - or other SQL
PL languages. When you use % reftypes - then there are potential risk
so space (variable, column) isn't well dimensioned.

Pavel


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: actualised funcs typmod patch
Next
From: Pavel Stehule
Date:
Subject: Re: RFC for adding typmods to functions