Re: Add value to error message when size extends

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема Re: Add value to error message when size extends
Дата
Msg-id CABRT9RCSnfYS4mcM0qLif=r6aRyrDe+H8-38RCaA=hdbcJeKTA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add value to error message when size extends  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add value to error message when size extends  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Add value to error message when size extends  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Jan 19, 2014 at 8:10 PM, Tom Lane <tgl@sss.pgh.pa.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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: [PATCH] Negative Transition Aggregate Functions (WIP)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add value to error message when size extends