Hello 2011/9/5 Andy Colson <a...@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 > -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers