Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vitfi-0001lD-DD for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2013 22:21:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vitfh-0006op-SB for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2013 22:21:25 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vitff-0006mt-U8 for pgsql-hackers@postgresql.org; Tue, 19 Nov 2013 22:21:24 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vitfc-0007Er-Ia for pgsql-hackers@postgresql.org; Tue, 19 Nov 2013 22:21:23 +0000 Received: from anarazel.de (p5DDC6BDA.dip0.t-ipconnect.de [93.220.107.218]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MKt2u-1VitfP1BBo-000bes; Tue, 19 Nov 2013 23:21:07 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 9CB9B10125B; Tue, 19 Nov 2013 23:21:06 +0100 (CET) Date: Tue, 19 Nov 2013 23:21:06 +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: <20131119222106.GA6591@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> <20131119213919.GA2658@awork2.anarazel.de> <20131119221656.GB28149@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131119221656.GB28149@momjian.us> X-Provags-ID: V02:K0:lVKDzNHipM3nWpVv5RTYrTX7JWWLhFd4MIwgfNg9Ngd ga4o9PfQHy5R7f/WXFI/BLOorviwf9a0Rn48ezJh+HKOVcrxgZ kgI3jMKk95MHJagMM/HTY/WxUScvO2TOH8iTOEO7fmY9QUmVdL vFoChCU/kS2F3PVBF4krlO71eWt6lx9P11v+TCxd/U8boY54CT uhiGx+zNNrCNEuXk4ocjcBOsiAi7v9n5yG+1sImR3poz6uIuId S8zZcmKylfoQJPxlqIOpSDGaqnVkWFhMIdDv57+7ENVkEd8T1U ynPjkDk2DWtybWcM/IlDozO/HCzn0dqyXLs66hyJN+qLHkI0uM p2ldX9VOQJ+vtJPU6LK3iw5SxIzmoYLBIh9lDOg58 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 17:16:56 -0500, Bruce Momjian wrote: > On Tue, Nov 19, 2013 at 10:39:19PM +0100, Andres Freund wrote: > > 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 ;) > > Has there been any performance testing on this rewrite to use atomics? > If so, can I missed it. Do you mean inline? Or atomics? If the former no, if the latter yes. I've started on it because of http://archives.postgresql.org/message-id/20130926225545.GB26663%40awork2.anarazel.de 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