Re: Assitance needed for the resolution of memory leak

2023-10-11 Thread Ron
That's why you /attach/ files, not paste text. On 10/11/23 16:19, Sasmit Utkarsh wrote: Thanks Tom, It did work, and yeah I do have indentation in my editor, there was some formatting issue due to the copy and paste of the code. :) Regards, Sasmit Utkarsh +91-7674022625 On Thu, Oct 12, 2023

Re: Assitance needed for the resolution of memory leak

2023-10-11 Thread Sasmit Utkarsh
Thanks Tom, It did work, and yeah I do have indentation in my editor, there was some formatting issue due to the copy and paste of the code. :) Regards, Sasmit Utkarsh +91-7674022625 On Thu, Oct 12, 2023 at 2:07 AM Tom Lane wrote: > Sasmit Utkarsh writes: > > Like for an ex: I have provided t

Re: Assitance needed for the resolution of memory leak

2023-10-11 Thread Tom Lane
Sasmit Utkarsh writes: > Like for an ex: I have provided the test run for a file which has 4 > duplicate entries in the input file and below is the leak reported. I have > followed > consistently using PQclear to free all PGresult objects. No you haven't: you've got two PQexec-something calls and

Re: Assitance needed for the resolution of memory leak

2023-10-11 Thread Sasmit Utkarsh
HI Adrian, I have a main program which actually parses the input data from the files and inserts them to a table in postgres db. The input can have many duplicates and we cannot avoid it for now but we have to achieve the insertions of the records as quickly as possible. Below are the functions wh

Re: Assitance needed for the resolution of memory leak

2023-10-11 Thread Adrian Klaver
On 10/11/23 12:15, Sasmit Utkarsh wrote: Hi Team, I'm trying to insert multiple duplicate rows into the table using libpq in C. I'm getting a memory leak reported from addresssanitizer tool. Please let me know if i can share the code snippet That is the only way you are going to get an answe

Assitance needed for the resolution of memory leak

2023-10-11 Thread Sasmit Utkarsh
Hi Team, I'm trying to insert multiple duplicate rows into the table using libpq in C. I'm getting a memory leak reported from addresssanitizer tool. Please let me know if i can share the code snippet Regards, Sasmit Utkarsh +91-7674022625