Re: Fix calloc check if oom (PQcancelCreate)

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: Ranier Vilela <ranier.vf@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-05-27T17:42:47Z
Lists: pgsql-hackers
> On 27 May 2024, at 18:47, Jelte Fennema-Nio <postgres@jeltef.nl> wrote:

> So overall I agree pqReleaseConnHost and release_conn_addrinfo can be
> improved for easier safe usage in the future, but I don't think those
> improvements should be grouped into the same commit with an actual
> bugfix.

I have pushed the fix for the calloc check for now.

--
Daniel Gustafsson




Commits

  1. Fix check for memory allocation

  2. libpq: Add encrypted and non-blocking query cancellation routines