Re: pgstat cleanup: use palloc and AllocateFile

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pgstat cleanup: use palloc and AllocateFile
Date: 2004-10-28 01:39:25
Message-ID: 1098927565.26285.1.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Thu, 2004-10-28 at 02:20, Tom Lane wrote:
> I'd suggest just allocating the tabstat space in TopMemoryContext. The
> extra sub-context is useless overhead, since you don't actually use it
> for management purposes.

I don't know why I didn't think of that :)

Patch applied with your suggested change.

-Neil

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Kevin Brown 2004-10-28 03:20:45 Re: [PATCHES] ARC Memory Usage analysis
Previous Message Tom Lane 2004-10-28 00:41:54 Re: [HACKERS] rmtree() failure on Windows