Re: Memory growth observed with C++ application consuming libpq.dll on Windows - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: Memory growth observed with C++ application consuming libpq.dll on Windows
Date
Msg-id CAEudQAqeVbJi9wWXKOyk6v2NNa3CC=6aPbe3=2JkAXjtZWS90A@mail.gmail.com
Whole thread Raw
In response to Re: Memory growth observed with C++ application consuming libpq.dll on Windows  (Rajesh Kokkonda <rajeshk.kokkonda@gmail.com>)
Responses Re: Memory growth observed with C++ application consuming libpq.dll on Windows
List pgsql-hackers
Em sex., 2 de ago. de 2024 às 11:54, Rajesh Kokkonda <rajeshk.kokkonda@gmail.com> escreveu:
Okay. I will try to create one sample program and send it to you sometime next week. In the meantime, I am listing down all the methods we are consuming from libpq.

PQconnectdbParams
PQstatus
PQerrorMessage
PQpingParams
PQfinish
PQresultStatus
PQclear
PQsetSingleRowMode
PQntuples
PQnfields
PQftype
PQgetvalue
PQgetlength
PQgetisnull
PQgetCancel
PQfreeCancel
PQcancel
PQsetErrorVerbosity
PQsendPrepare
PQsendQueryPrepared
PQgetResult
PQconsumeInput
PQisBusy
PQsetnonblocking
PQflush
PQsocket
PQtransactionStatus
PQresultErrorField

It is highly likely that the memory consumption is caused by your application.
Perhaps due to the lack of freeing up the resources used by the library.
You can try using this tool, to find out the root cause.


best regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: can we mark upper/lower/textlike functions leakproof?
Next
From: Jacob Champion
Date:
Subject: Re: can we mark upper/lower/textlike functions leakproof?