pgsql: Initialize conn->Pfdebug to NULL when creating a connection - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Initialize conn->Pfdebug to NULL when creating a connection
Date
Msg-id E1lRjDz-0004LI-RU@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Initialize conn->Pfdebug to NULL when creating a connection

Failing to do this can cause a crash, and I suspect is what has happened
with a buildfarm member reporting mysterious failures.

This is an ancient bug, but I'm not backpatching since evidently nobody
cares about PQtrace in older releases.

Discussion: https://postgr.es/m/3333908.1617227066@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aba24b51cc1b045a9810458b4bb15fee2c182948

Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 1 +
1 file changed, 1 insertion(+)


pgsql-committers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: pgsql: Extended statistics on expressions
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Remove setvbuf() call from PQtrace()