Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-06 Thread Ranier Vilela
Em ter., 6 de ago. de 2024 às 05:33, Rajesh Kokkonda < rajeshk.kokko...@gmail.com> escreveu: > I ran a trial version of a memory leak detector called Deleaker on windows > and found some modules that are listed as having leaks. I ran the program > on Linux under valgrind and I do not see any leak

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-06 Thread Rajesh Kokkonda
I ran a trial version of a memory leak detector called Deleaker on windows and found some modules that are listed as having leaks. I ran the program on Linux under valgrind and I do not see any leaks reported there. I have attached the reported leaks on windows as windows_leaks.txt and valgrind su

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-02 Thread Rajesh Kokkonda
We did run our application under valgrind on Linux. We did not see any leaks. There is no platform dependent code in our application. We are seeing gradual memory growth only on windows. That is what lead me to believe the leak may be present in postgresql. I will run under available memory tools

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-02 Thread Ranier Vilela
Em sex., 2 de ago. de 2024 às 11:54, Rajesh Kokkonda < rajeshk.kokko...@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 >

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-02 Thread Rajesh Kokkonda
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

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-02 Thread Tom Lane
Rajesh Kokkonda writes: > Are you looking for a fully functional sample program or only the APIs from > libpq library that our product uses? I am asking this because if the > requirement is to have a sample code, then I will have to work on creating > one on the same lines as our product. Just fo

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-02 Thread Yasir
On Fri, Aug 2, 2024 at 1:53 PM Rajesh Kokkonda wrote: > Hi Yasir, > > Are you looking for a fully functional sample program or only the APIs > from libpq library that our product uses? I am asking this because if the > requirement is to have a sample code, then I will have to work on creating > o

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-02 Thread Rajesh Kokkonda
Hi Yasir, Are you looking for a fully functional sample program or only the APIs from libpq library that our product uses? I am asking this because if the requirement is to have a sample code, then I will have to work on creating one on the same lines as our product. Rajesh On Thu, Aug 1, 2024 a

Re: Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-01 Thread Yasir
Hi Rajesh, Can you please attach a sample code snippet showing libpq's functions being called? It will help to identify the libpq's functions to investigate further for a potential mem leak. Regards... Yasir Hussain On Thu, Aug 1, 2024 at 4:30 PM Rajesh Kokkonda wrote: > Hi, > > We are seeing

Memory growth observed with C++ application consuming libpq.dll on Windows

2024-08-01 Thread Rajesh Kokkonda
Hi, We are seeing a gradual growth in the memory consumption of our process on Windows. Ours is a C++ application that directly loads libpq.dll and handles the queries and functions. We use setSingleRowMethod to limit the number of rows returned simultaneously to the application. We do not observe