Re: VACUUM memory management - Mailing list pgsql-hackers

From Greg Stark
Subject Re: VACUUM memory management
Date
Msg-id CAM-w4HMwc=kKhd_y1MwfNWJwWG7dsPkrt2iVQjzQb=OfAr0eZw@mail.gmail.com
Whole thread Raw
In response to Re: VACUUM memory management  (Ibrar Ahmed <ibrar.ahmad@gmail.com>)
Responses Re: VACUUM memory management
List pgsql-hackers
On Mon, 9 Dec 2019 at 14:03, Ibrar Ahmed <ibrar.ahmad@gmail.com> wrote:
> I'd
> actually argue that the segment size should be substantially smaller
> than 1 GB, like say 64MB; there are still some people running systems
> which are small enough that allocating 1 GB when we may need only 6
> bytes can drive the system into OOM."

I don't even see why you would allocated as much as 64MB. I would
think something around 1MB would be more sensible. So you might need
an array of segment pointers as long as a few thousand pointers, big
deal. We can handle repalloc on 8kB arrays pretty easily.

-- 
greg



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: log bind parameter values on error
Next
From: Tom Lane
Date:
Subject: Re: [Proposal] Level4 Warnings show many shadow vars