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

Re: MemoryContextCheck()

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-patches <pgsql-patches(at)postgreSQL(dot)org>
Subject: Re: MemoryContextCheck()
Date: 2000-07-11 07:43:10
Message-ID: Pine.LNX.3.96.1000711092613.29025A-100000@ara.zf.jcu.cz (view raw or flat)
Thread:
Lists: pgsql-patches
On Mon, 10 Jul 2000, Tom Lane wrote:

And my patch ? :-)

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> --- and BTW. this Dllist design stand in the way for query cache :-)
> 
> > That Dllist really has to be removed and made to use the existing
> > routines, if possible.
> 
> Yeah, that dllist stuff is on my hit list for memory rewrite.  It should
> be using palloc().

 Yes. It is a long "malloc-list". IMHO if we have standard chunks and
pfree() is not a problem, we not need malloc. We can *always* use some
context. Now is malloc() very often used for persistent allocation, but it
is posible via some persistent context too. Or exist some real matter for
malloc()?  

					Karel

...malloc list:

bootstrap/bootstrap.c
bootstrap/bootparse.c
bootstrap/bootscanner.c
commands/async.c
commands/sequence.c
executor/spi.c
lib/dllist.c
parser/gram.c
parser/scan.c
port/dynloader/aix.c
port/dynloader/nextstep.c
port/nextstep/port.c
postmaster/postmaster.c
regex/engine.c
regex/regcomp.c
regex/regexec.c
storage/buffer/localbuf.c
storage/file/fd.c
storage/ipc/ipc.c
storage/ipc/sinval.c
tioga/Varray.c
tioga/tgRecipe.c
utils/fmgr/dfmgr.c
utils/cache/inval.c
utils/error/elog.c
utils/init/findbe.c
utils/init/globals.c
utils/init/miscinit.c
utils/misc/guc-file.l
utils/misc/guc.c
utils/misc/ps_status.c
utils/misc/guc-file.c


In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2000-07-11 14:30:05
Subject: Re: MemoryContextCheck()
Previous:From: Tom LaneDate: 2000-07-10 22:36:09
Subject: Re: MemoryContextCheck()

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