Re: ERROR: invalid memory alloc request size - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ERROR: invalid memory alloc request size
Date
Msg-id 23650.1130444123@sss.pgh.pa.us
Whole thread Raw
In response to Re: ERROR: invalid memory alloc request size  (Greg Stark <gsstark@mit.edu>)
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>> We'd have to make sure zero is never the *correct* value of the offset,
>> but that just means wasting one word, which seems no problem.

> In theory it's possible for only half the word to be written or even to have
> outright garbage show up. In practice I think there are no actual
> architectures where this can really happen though.

Not an issue, because we have a lock around the read or write of the
slru buffer page.  The problem is that there's no lock continuously held
through the creation of a multixact entry, and we don't really wish to
add one ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: ERROR: invalid memory alloc request size
Next
From: "Jim C. Nasby"
Date:
Subject: Re: enums