pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: shm_toc_lookup API
Date: Mon, 05 Jun 2017 15:06:06 -0400
Message-ID: <28711.1496689566@sss.pgh.pa.us> (raw)
In-Reply-To: <20170605190249.pd4jpet5y2xoheo2@alap3.anarazel.de>
References: <9697.1496675981@sss.pgh.pa.us>
	<CA+TgmoZ_GAT21HLZsw=whXaj3uN_=bez420cRLP0149RPtvS_Q@mail.gmail.com>
	<16984.1496679541@sss.pgh.pa.us>
	<CA+Tgmoa2tpKPO0+qAyHT_dLFhTfqTzkxzDfFE81VJbSdwPTkqQ@mail.gmail.com>
	<28314.1496689030@sss.pgh.pa.us>
	<20170605190249.pd4jpet5y2xoheo2@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (8+ messages)  latest in thread

Message-ID: <28711.1496689566@sss.pgh.pa.us>
Permalink:  ../28711.1496689566@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28711.1496689566@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, robertmhaas@gmail.com
  Subject: Re: shm_toc_lookup API
  In-Reply-To: <28711.1496689566@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox