Re: remove useless ccache searching - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: remove useless ccache searching
Date
Msg-id CAFj8pRB9NrQLN77dy-gyyp7S6Uf8+b-g1AwbUgNzty9Cz_TdxQ@mail.gmail.com
Whole thread Raw
In response to Re: remove useless ccache searching  (Andy Colson <andy@squeakycode.net>)
List pgsql-hackers
Hello

2011/9/5 Andy Colson <andy@squeakycode.net>:
> Pavel, I have not taken on your patch for review, but I was reading the
> history of it, and one question popped up:
>
> If you are allocating a new cache, what if the array is really big, will 1st
> cache + your cache get bigger than work_mem?  (or are array op's not
> constrained by work_mem?  Sorry, I have not used array's so not sure if
> there are memory limits on them)

this patch doesn't cache a array - it store only a 18 bytes more per
array variable - it doesn't depend on array size.

but generally, arrays are not limited by work_mem - so if you work
with large arrays - you can go out of memory.

Regards

Pavel


>
> -Andy
>


pgsql-hackers by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: [GENERAL] pg_upgrade problem
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] pg_upgrade problem