Skip site navigation (1) Skip section navigation (2)

Re: BUG #4996: postgres.exe memory consumption keeps going up

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: "WANGRUNGVICHAISRI, SHIVESH" <sbw(at)appsig(dot)com>
Cc: pgsql-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #4996: postgres.exe memory consumption keeps going up
Date: 2009-08-27 00:35:54
Message-ID: 1251333354.17480.5.camel@wallace.localnet (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-hackers
On Wed, 2009-08-26 at 16:51 -0700, WANGRUNGVICHAISRI, SHIVESH wrote:

> So my claim that PostgreSQL was leaking memory was not true, and I do
> apologize.

No problem. That's why it's important to look into these things - so we
find out.

> However, I still insist that potentially the PostgreSQL community might
> want to look into why making use of libpq causes the client program's
> memory consumption to keep growing. This can be easily observed using
> the earlier test program uploaded to here:

I agree. I can reproduce the growth with your test program when I built
it from sources against 8.4.0's libpq and run it against an 8.4.0

The source of the growth (leak?) isn't clear at the moment. It doesn't
seem to be the test code its self, nor is it clear how it could be. To
learn more I'm going to have to build PostgreSQL (or at least libpq)
from sources using VC++8 in debug mode with memory tracing enabled.

I'll also try building it on a Linux machine to see if it's a
Windows-specific issue.

Thanks for your persistence on this. I'll follow up in a bit when I've
learned more about what's going on with libpq.

Craig Ringer

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2009-08-27 00:38:49
Subject: Re: We should Axe /contrib/start-scripts
Previous:From: Greg StarkDate: 2009-08-27 00:27:42
Subject: Re: We should Axe /contrib/start-scripts

pgsql-bugs by date

Next:From: Craig RingerDate: 2009-08-27 01:42:32
Subject: Re: BUG #5015: MySQL migration wizard does not start
Previous:From: WANGRUNGVICHAISRI, SHIVESHDate: 2009-08-26 23:51:55
Subject: Re: BUG #4996: postgres.exe memory consumption keeps going up

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group