Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cS21W-0001GX-4J for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jan 2017 13:36:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cS21V-0003Cw-NY for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jan 2017 13:36:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cS21U-0003Cq-Jx for pgsql-hackers@postgresql.org; Fri, 13 Jan 2017 13:36:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cS21R-0007L0-Tu for pgsql-hackers@postgresql.org; Fri, 13 Jan 2017 13:36:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v0DDZxlP032593; Fri, 13 Jan 2017 08:35:59 -0500 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix field order in struct catcache. In-reply-to: <20170113133055.xgc4jvtwbszs2475@alvherre.pgsql> References: <20170113133055.xgc4jvtwbszs2475@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 13 Jan 2017 10:30:55 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32591.1484314559.1@sss.pgh.pa.us> Date: Fri, 13 Jan 2017 08:35:59 -0500 Message-ID: <32592.1484314559@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) 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 Alvaro Herrera writes: > Tom Lane wrote: >> Somebody failed to grasp the point of having the #ifdef CATCACHE_STATS >> fields at the end of the struct. Put that back the way it should be, >> and add a comment making it more explicit why it should be that way. > Actually, the CATCACHE_STATS was added purposefully not at end of > struct, because back then cc_bucket was a variable-length array; see > commit 786340441706 (2002). It only became possible to do this after > commit 20cb18db4668 (2013). I researched this because I vaguely > believed this to be my fault (a66ee69ad) but that's not so. Hah, okay. Well, it's better now than it was. (Actually, I wonder why we expose struct catcache to the rest of the world at all.) 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