Re: making bgworkers without shmem access actually not have shmem access - Mailing list pgsql-hackers

From Tom Lane
Subject Re: making bgworkers without shmem access actually not have shmem access
Date
Msg-id 1430.1399488283@sss.pgh.pa.us
Whole thread Raw
In response to making bgworkers without shmem access actually not have shmem access  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: making bgworkers without shmem access actually not have shmem access  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> I've complained about this problem a few times before: there's nothing
> to prevent a background worker which doesn't request shared memory
> access from calling InitProcess() and then accessing shared memory
> anyway.  The attached patch is a first crack at fixing it.

> Comments?

Looks reasonable to me.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers
Next
From: Peter Geoghegan
Date:
Subject: Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers