Memory Leaks in query_planner in postgresql 9.4 version

From: Gourav Kumar <gourav1905(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Memory Leaks in query_planner in postgresql 9.4 version
Date: 2018-04-21 11:14:36
Message-ID: CAPzqDmia4aNRd9bqkebyR1vnWJhz7d1X5AUdUHrmV2cqHHhb+w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

I have modified the PostgreSQL source code for my project implementation.
In the modified code, I am calling query_planner function several times
while I am inside the grouping planner function.

As the number of executions increase I have noticed memory leaks in the
code. I have pinpointed it to be inside the query_planner, using the
heaptrack tool. But, I am unable to figure out the exact location of it.

I would appreciate if any body can tell me, has anyone else observed memory
leaks in query_planner function, however small it might be (even in Bytes).
Because in my case I think there are small leaks which increase as the
number of calls to query_planner are huge in my implementation. (You can
assume that I have not modified query_planner function.)

Thanks,
Gourav

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2018-04-21 13:16:27 Re: Toast issues with OldestXmin going backwards
Previous Message David Rowley 2018-04-21 05:09:29 Re: Should we add GUCs to allow partition pruning to be disabled?