Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VinKU-0001tl-8q for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2013 15:35:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VinKT-0005Qg-OI for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2013 15:35:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VinKR-0005O6-Bq for pgsql-hackers@postgresql.org; Tue, 19 Nov 2013 15:35:03 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VinKO-0002CG-60 for pgsql-hackers@postgresql.org; Tue, 19 Nov 2013 15:35:03 +0000 Received: from intern.anarazel.de (p5DDC736E.dip0.t-ipconnect.de [93.220.115.110]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 7B6F94F0001; Tue, 19 Nov 2013 16:34:59 +0100 (CET) Date: Tue, 19 Nov 2013 16:34:59 +0100 From: Andres Freund To: Tom Lane Cc: Peter Eisentraut , Robert Haas , Peter Geoghegan , Pg Hackers , Ants Aasma Subject: Re: better atomics - v0.2 Message-ID: <20131119153459.GB19293@alap2.anarazel.de> References: <20131115200416.GH5489@awork2.anarazel.de> <8392.1384873040@sss.pgh.pa.us> <528B801D.5010609@gmx.net> <9178.1384875024@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9178.1384875024@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2013-11-19 10:30:24 -0500, Tom Lane wrote: > > I don't have an informed opinion about requiring inline support > > (although it would surely be nice). > > inline is C99, and we've generally resisted requiring C99 features. > Maybe it's time to move that goalpost, and maybe not. But it's a part of C99 that was very widely implemented before, so even if we don't want to rely on C99 in its entirety, relying on inline support is realistic. I think, independent from atomics, the readability & maintainability win by relying on inline functions instead of long macros, potentially with multiple eval hazards, or contortions like ILIST_INCLUDE_DEFINITIONS is significant. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers