Re: Add tests for object size limits of injection points

Поиск
Список
Период
Сортировка
От Xuneng Zhou
Тема Re: Add tests for object size limits of injection points
Дата
Msg-id CABPTF7VxYp4Hny1h+7ejURY-P4O5-K8WZg79Q3GUx13cQ6B2kg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add tests for object size limits of injection points  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Add tests for object size limits of injection points
Re: Add tests for object size limits of injection points
Re: Add tests for object size limits of injection points
Список pgsql-hackers
Hi Michael, Chao,

On Mon, Nov 10, 2025 at 11:32 AM Michael Paquier <michael@paquier.xyz> wrote:
>
> On Mon, Nov 10, 2025 at 10:30:31AM +0800, Chao Li wrote:
> > Is really confused. The error message says “maximum of 64”, but the
> > test right uses a name of length 64. I know that the tricky is the
> > ‘\0’ terminator, but should SQL writer have to keep mind about the
> > ‘\0’ terminator? Should they just consider maximum length as 63?
>
> Right.  We could add a "- 1" to the error message printed.

Thanks for the patch. I also agree with Chao's suggestion that the
error message better reflects the actual character limits. I
implemented a patch for that and updated the test patch as well.
Please check.

Best,
Xuneng

Вложения

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