Hannu Krosing <hannu@skype.net> writes:
> So perhaps we could keep the shaded_work_mem in actual shared memory,
> and alloc it to processes from there ?
No, that's utterly not reasonable, both from an allocation point of view
(you'd have to make shared memory enormous, and not all platforms will
like that) and from a locking point of view.
regards, tom lane