Re: Add value to error message when size extends

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Maor Lipchuk <mlipchuk(at)redhat(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Daniel Erez <derez(at)redhat(dot)com>
Subject: Re: Add value to error message when size extends
Date: 2014-01-19 19:02:58
Message-ID: CABRT9RCSnfYS4mcM0qLif=r6aRyrDe+H8-38RCaA=hdbcJeKTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-01-19 19:18:17 Re: Add value to error message when size extends
Previous Message David Rowley 2014-01-19 19:00:04 Re: [PATCH] Negative Transition Aggregate Functions (WIP)