Re: [HACKERS] Its not my fault. Its SEG's FAULT!
Vadim B. Mikheev <vadim@sable.krasnoyarsk.su>
From: "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>
To: Maurice Gittens <mgittens@gits.nl>
Cc: David Gould <dg@illustra.com>, pgsql-hackers@postgreSQL.org
Date: 1998-04-03T05:17:09Z
Lists: pgsql-hackers
I agreed with Maurice. Using GC instead of MemoryDuration everywhere isn't good idea for database server. But we could implement additional GC-like allocation mode and use it where is appropriate! One example - using float8 (etc) in WHERE. We could switch to GC-allocation in the beginnig of ExecQual () and destroy all allocations made in GC-mode before return(). Another example - psort.c! With -S 8192 I see that server uses ~ 30M of memory - due to malloc/palloc overhead in palloc() for each tuple. No one of these allocations will be freed untill psort_end() <- good place for GC-destroyer. Comments ? Vadim