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

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Joshua Shanks <jjshanks@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2025-11-02T00:09:55Z
Lists: pgsql-hackers
On Sat, Nov 01, 2025 at 04:49:02PM -0700, Joshua Shanks wrote:
> The conn parameter is placed first, consistent with the object-oriented
> convention used throughout libpq (see connectOptions1,
> fillPGconn, store_conn_addrinfo, etc.).

Sounds OK to me.  Nice catch.  It's probably not worth bothering in
the stable branches as the error is unlikely going to show up.
--
Michael

Commits

  1. libpq: Improve error handling in passwordFromFile()