Re: NULL pointer dereference in syslogger with load_libraries() and -DEXEC_BACKEND at startup

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-05-25T08:21:49Z
Lists: pgsql-hackers
On Mon, May 25, 2026 at 04:45:41PM +0900, Michael Paquier wrote:
> I did not take the cycles necessary for a bisect, but it looks like
> this has been around for a few months at least.  I have pinged
> f3c9e341cdf1 as a safe startup point for now, so that's a 2026 issue.

Well, well:
0c8e082fba8d36434552d3d7800abda54acafd57 is the first bad commit 
committer: Álvaro Herrera <alvherre@kurilemu.de>
date: Wed, 4 Feb 2026 16:56:57 +0100
Assign "backend" type earlier during process start-up 

I have also checked manually a revert of this commit, and saw that the
problem is gone, so it does not look like I have messed up my bisect.

Alvaro?
--
Michael