Re: [PATCH] Add error message for out-of-memory in passwordFromFile() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [PATCH] Add error message for out-of-memory in passwordFromFile()
Date
Msg-id aQngrpjsKOLZtAii@paquier.xyz
Whole thread Raw
In response to Re: [PATCH] Add error message for out-of-memory in passwordFromFile()  (Joshua Shanks <jjshanks@gmail.com>)
List pgsql-hackers
On Mon, Nov 03, 2025 at 09:15:25PM -0800, Joshua Shanks wrote:
> Thank you for the detailed feedback! This is my first C project
> contribution, so I really appreciate you taking the time to explain the
> proper error handling pattern.

No problem.  Applied on HEAD after a few tweaks:
* two libpq_gettext() added,
* *errmsg set to NULL when entering passwordFromFile().
* Some rewords.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Fabrice Chapuis
Date:
Subject: Re: Issue with logical replication slot during switchover
Next
From: Jim Jones
Date:
Subject: Re: [PATCH] Add pg_get_tablespace_ddl() function to reconstruct CREATE TABLESPACE statement