On Sun, Jan 19, 2014 at 8:10 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Complaining about a too-long varchar string in this style
> seems practically guaranteed to violate that.
Agreed. But I think it would be useful to add the length of the string
being inserted; we already have it in the len variable.
> One thing that occurs to me just now is that perhaps we could report
> the failure as if it were a syntax error
That would be cool, if it can be made to work.
Regards,
Marti