Re: [PATCHES] PATCH: Memory leaks on start-up - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCHES] PATCH: Memory leaks on start-up
Date
Msg-id 6637.1058884778@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] PATCH: Memory leaks on start-up  (Lee Kindness <lkindness@csl.co.uk>)
Responses Re: [PATCHES] PATCH: Memory leaks on start-up
List pgsql-hackers
Lee Kindness <lkindness@csl.co.uk> writes:
> I'd have to disagree with regards to the memory leaks not being worth
> a mention - any such leak can cause problems when the PostgreSQL
> installation is either unattended, long-living andor has very high
> connection levels.

I don't see how.  We are talking about two strings, no more, no less,
that live for exactly the duration of the postmaster run.  Explain to me
how any of your above conditions will affect this code in the slightest?

If UnlinkLockFile ever got invoked before postmaster exit, then this
would be worth doing, and I'll accept the change as a matter of
future-proofing that routine against such use.  But on the argument of
preventing resource leakage today, this is just a waste of code space.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: ...
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: tsearch2 for 7.3.X