Re: Internal error codes triggered by tests
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Alexander Lakhin <exclusion@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-07-18T07:29:36Z
Lists: pgsql-hackers
Attachments
- errno-nametoolong.patch (text/x-diff) patch
On Fri, Jul 12, 2024 at 10:41:14PM +0200, Daniel Gustafsson wrote: > Mapping this case to ERRCODE_NAME_TOO_LONG seems like a legit improvement, even > though the error is likely to be quite rare in production. Hmm. This is interesting, still it could be confusing as ERRCODE_NAME_TOO_LONG is used only for names, when they are longer than NAMEDATALEN, so in context that's a bit different than a longer file name. How about using a new error code in class 58, say a ERRCODE_FILE_NAME_TOO_LONG like in the attached? ERRCODE_DUPLICATE_FILE is like that; it exists just for the mapping with EEXIST. -- Michael
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add new error code for "file name too long"
- 2d8ef5e24fd3 18.0 landed
-
Assign error codes where missing for user-facing failures
- b81a71aa05f2 18.0 landed