| From: | Joshua Shanks <jjshanks(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | [PATCH] libpq: Wrap out-of-memory error messages with libpq_gettext() |
| Date: | 2025-11-08 20:21:24 |
| Message-ID: | CAOxqWDch7a0+w2y9KM+80fFF981Z58zdF1-tHKCEU=7ZLRiOGA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
The recent patch for passwordFromFile() error handling highlighted
that many other out-of-memory error messages in libpq still aren't
wrapped with libpq_gettext().
Attached is a patch that systematically wraps the remaining bare "out
of memory" strings across libpq with libpq_gettext() to ensure consistent
translation support. This covers:
- Authentication modules (fe-auth.c, fe-auth-scram.c, fe-auth-oauth.c)
- Connection handling (fe-connect.c, fe-cancel.c)
- Protocol and secure communication (fe-protocol3.c, fe-secure-*.c)
- Other modules (fe-exec.c, fe-lobj.c, fe-gssapi-common.c)
Cheers,
Joshua
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-libpq-Wrap-out-of-memory-error-messages-with-libpq_g.patch | application/octet-stream | 26.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2025-11-08 20:36:37 | Re: should we have a fast-path planning for OLTP starjoins? |
| Previous Message | Tomas Vondra | 2025-11-08 20:14:54 | Re: should we have a fast-path planning for OLTP starjoins? |