Andres Freund <andres(at)anarazel(dot)de> writes:
> On 2017-06-05 14:57:10 -0400, Tom Lane wrote:
>> Meh. Without volatile, I think that the compiler would be within its
>> rights to elide the nentry local variable and re-fetch toc->toc_nentry
>> each time through the loop.
> I don't think that's true.
Perhaps not, but I'm not quite convinced. Anyway it doesn't matter,
at least not here.
regards, tom lane