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

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Initialize conn->Pfdebug to NULL when creating a connection
Date: 2021-03-31 22:22:07
Message-ID: E1lRjDz-0004LI-RU@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2021-03-31 23:18:53 pgsql: Remove setvbuf() call from PQtrace()
Previous Message Tomas Vondra 2021-03-31 22:07:43 Re: pgsql: Extended statistics on expressions