Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WzuyJ-0003EU-Cc for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2014 21:43:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WzuyI-00031u-TF for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jun 2014 21:43:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WzuyH-00031l-KJ for pgsql-hackers@postgresql.org; Wed, 25 Jun 2014 21:43:13 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Wzuy9-00010J-5j for pgsql-hackers@postgresql.org; Wed, 25 Jun 2014 21:43:12 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id EA38E28D79; Wed, 25 Jun 2014 14:42:59 -0700 (PDT) Received: from EX13-CAS-006.vmware.com (EX13-CAS-006.vmware.com [10.113.191.56]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id E3D0A1972B; Wed, 25 Jun 2014 14:42:59 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-005.vmware.com (10.113.191.25) with Microsoft SMTP Server (TLS) id 15.0.775.38; Wed, 25 Jun 2014 14:42:54 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Wed, 25 Jun 2014 14:42:41 -0700 Message-ID: <53AB424D.8030306@vmware.com> Date: Thu, 26 Jun 2014 00:42:37 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Andres Freund , Robert Haas CC: Tom Lane , Peter Geoghegan , Pg Hackers , Ants Aasma Subject: Re: better atomics - v0.5 References: <20140625171434.GG24114@awork2.anarazel.de> <20140625203635.GJ24114@awork2.anarazel.de> In-Reply-To: <20140625203635.GJ24114@awork2.anarazel.de> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.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 06/25/2014 11:36 PM, Andres Freund wrote: > >> >- I completely loathe the file layout you've proposed in >> >src/include/storage. If we're going to have separate #include files >> >for each architecture (and I'd rather we didn't go that route, because >> >it's messy and unlike what we have now), then shouldn't that stuff go >> >in src/include/port or a new directory src/include/port/atomics? >> >Polluting src/include/storage with a whole bunch of files called >> >atomics-whatever.h strikes me as completely ugly, and there's a lot of >> >duplicate code in there. > I don't mind moving it somewhere else and it's easy enough to change. I think having a separate file for each architecture is nice. I totally agree that they don't belong in src/include/storage, though. s_lock.h has always been misplaced there, but we've let it be for historical reasons, but now that we're adding a dozen new files, it's time to move them out. - Heikki -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers