Content-Length: 257741 | pFad | http://github.com/postgrespro/postgres/commit/aba24b51cc1b045a9810458b4bb15fee2c182948

D1 Initialize conn->Pfdebug to NULL when creating a connection · postgrespro/postgres@aba24b5 · GitHub
Skip to content

Commit aba24b5

Browse files
committed
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
1 parent a6d3dea commit aba24b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3952,6 +3952,7 @@ makeEmptyPGconn(void)
39523952
conn->verbosity = PQERRORS_DEFAULT;
39533953
conn->show_context = PQSHOW_CONTEXT_ERRORS;
39543954
conn->sock = PGINVALID_SOCKET;
3955+
conn->Pfdebug = NULL;
39553956

39563957
/*
39573958
* We try to send at least 8K at a time, which is the usual size of pipe

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/aba24b51cc1b045a9810458b4bb15fee2c182948

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy