Re: Libpq question related to allocated resources

2022-07-02 Thread Karl Denninger
On 6/27/2022 23:22, Tom Lane wrote: Karl Denninger writes: But -- I still have a /lot /of memory out on the heap according to jemalloc stats that is not being deallocated, and what's worse is that if I rig the code to call PQfinish and then PQconnect once again I get /even more /imbalanced

Re: Libpq question related to allocated resources

2022-06-28 Thread Karl Denninger
On 6/27/2022 23:22, Tom Lane wrote: Karl Denninger writes: But -- I still have a /lot /of memory out on the heap according to jemalloc stats that is not being deallocated, and what's worse is that if I rig the code to call PQfinish and then PQconnect once again I get /even more /imbalanced

Re: Libpq question related to allocated resources

2022-06-27 Thread Tom Lane
Karl Denninger writes: > But -- I still have a /lot /of memory out on the heap according to > jemalloc stats that is not being deallocated, and what's worse is that > if I rig the code to call PQfinish and then PQconnect once again I get > /even more /imbalanced allocate/free counts (and the

Libpq question related to allocated resources

2022-06-27 Thread Karl Denninger
I've got a fairly sizeable application that runs as a CGI app under Apache which I am attempting to convert to FastCGI. "Once through and done" apps tend not to care much if deallocation is less than perfect, since exit(0) (or otherwise) tends to heal all wounds.  Not so much when something's