Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vit1D-0000Du-OX for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2013 21:39:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vit1D-0000mc-82 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2013 21:39:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vit1C-0000mU-2E for pgsql-hackers@postgresql.org; Tue, 19 Nov 2013 21:39:34 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vit19-0001LS-Bk for pgsql-hackers@postgresql.org; Tue, 19 Nov 2013 21:39:33 +0000 Received: from anarazel.de (p5DDC6BDA.dip0.t-ipconnect.de [93.220.107.218]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MNeGY-1VkVZy1BjG-007TXX; Tue, 19 Nov 2013 22:39:20 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 908F910125B; Tue, 19 Nov 2013 22:39:19 +0100 (CET) Date: Tue, 19 Nov 2013 22:39:19 +0100 From: Andres Freund To: Bruce Momjian Cc: Tom Lane , Peter Eisentraut , Robert Haas , Peter Geoghegan , Pg Hackers , Ants Aasma Subject: Re: better atomics - v0.2 Message-ID: <20131119213919.GA2658@awork2.anarazel.de> References: <20131115200416.GH5489@awork2.anarazel.de> <8392.1384873040@sss.pgh.pa.us> <528B801D.5010609@gmx.net> <9178.1384875024@sss.pgh.pa.us> <20131119153459.GB19293@alap2.anarazel.de> <20131119213732.GX28149@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131119213732.GX28149@momjian.us> X-Provags-ID: V02:K0:w5w32fVGKvR3yGp5UzB1DEsQ9ehucON7dTD1ozmFkuj 8v8jNs86Y2CmQ/n5pfudd8bbONmV6jV5RVmuQeJDY/T/oWdYR1 BYVhJyCpoobudBDoi9xSMMAG8kGhce7f7B4ZZ9ECOQ/i89EDUN w52yC3JbnbG8tJ+SYhx45s/xi58MOSv1HYa0qi8gxXXHJjID/5 bvYHfjt5sfuIBda8hXPH/2fbPRdNut767hhzqT/jaSb2+krKNP O0NkHzds8kHioaFRjnB8YpB6oIXhF+5pSuUaj78SJY5AooUJRs VzYO5HnZPLkDQL874511SYVAUcWGsWD34WAGp0cqeGszZ8yBUu gStDXYbF/0JVm547tb1izBVRLjK5X9w5rn1rhF0co X-Pg-Spam-Score: -1.9 (-) 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 16:37:32 -0500, Bruce Momjian wrote: > On Tue, Nov 19, 2013 at 04:34:59PM +0100, Andres Freund wrote: > > 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. > > Oh, man, my fastgetattr() macro is going to be simplified. All my good > work gets rewritten. ;-) That and HeapKeyTest() alone are sufficient reason for this ;) 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