Re: Add tests for object size limits of injection points - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Add tests for object size limits of injection points
Date
Msg-id aRFcpvQCkDF5a3H7@paquier.xyz
Whole thread Raw
In response to Re: Add tests for object size limits of injection points  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: Add tests for object size limits of injection points
List pgsql-hackers
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.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Xuneng Zhou
Date:
Subject: Re: Optimize SnapBuildPurgeOlderTxn: use in-place compaction instead of temporary array
Next
From: Philip Warner
Date:
Subject: Re: pg_dump not dumping default_text_search_config WAI?