Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cS1wf-00013J-Kx for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jan 2017 13:31:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cS1wf-0000od-3K for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jan 2017 13:31: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 1cS1wd-0000lR-C1 for pgsql-hackers@postgresql.org; Fri, 13 Jan 2017 13:31:03 +0000 Received: from mail-qt0-x22e.google.com ([2607:f8b0:400d:c0d::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cS1wa-0007El-EF for pgsql-hackers@postgresql.org; Fri, 13 Jan 2017 13:31:02 +0000 Received: by mail-qt0-x22e.google.com with SMTP id x49so46988832qtc.2 for ; Fri, 13 Jan 2017 05:31:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=iIoTAgRXZu23S5n9Rb4lLHaZLvIXky5kSnKsc0Y7uAU=; b=EUs5CzhA6IZM0ng8rOcUMaib8JT067u+9RyDcR82mY8zB5fg2yNfk9wMVPxQhMzG4k vyWwOeY871DXulVOw3QlnnmNQ7p5HQieAbsPtVMPaSQOhjhMvE7vsVuGhP+Cf0zChZCt lKPnQzvk8HH1e8VVWBswi6RecSINqHL4Ju66ZoxtaXVXyWBV895aLjwTjvj8TTXqMQis q1ssMrVfDAALXl085VbikOhEpLKpXimt6Hu3Exrlwh473qyV+6kt12wK5L7EF15XEdUU /sxooIKplAfdYTpOGDFCxr+h6CuHC/jQllmXI+aZFqu9pRqN6MD4Ks3VE2pmELYNOoMT epzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=iIoTAgRXZu23S5n9Rb4lLHaZLvIXky5kSnKsc0Y7uAU=; b=RpfiMf4f7U3sack/WU/JgMSpfQ07gPa9Gs841vENZvtGWO3+VeZrvbHn32B86n0dlw 0KiP53XYoYd/xaekS86K41niycq3Ju1B8wBxwjzEZTWJ57/2+SvgWeH3qKn9yfR+IUVz JD6o7lQgY0yfstCVb0OB0hVsXG7lZ+dNI8ucBx4jcHelSz/jueXpRklq2hxrq1T5bWkE LHG1N4f7Oa5FSmc+6A169hF3ALr/sfkaKNZuq0O+Kx+LLNOJ3rPSiCSjN+oBMIs2PzvF oGeq69CXpGq2ijBWFOEzv7FwWMFX7ZfjmbXi9KizTNZcgOuOgZi9TMDhsByvRlLtv6Lp 29aQ== X-Gm-Message-State: AIkVDXKdtrWrsbDQjuE9xiMlVXBqwb+sUtN1bkPN2s6wcQ/EgFOBUfn2QlW3O2IffaDvv2jhOtPWA8tx1NUw5sRrd9aRrhXYtqVddE6e8nNlKsUfnRyRSgim7jRl8qY0fUJE3ES6zFD9pRV3rnz7dRqDscp5h2NWXC4p10IhNZO6f8/M25hHLWlueZKGHflcM82KKO0= X-Received: by 10.200.1.11 with SMTP id e11mr6509245qtg.85.1484314259528; Fri, 13 Jan 2017 05:30:59 -0800 (PST) Received: from alvin.alvh.no-ip.org ([181.42.254.77]) by smtp.gmail.com with ESMTPSA id t35sm9137866qtc.40.2017.01.13.05.30.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 05:30:59 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 3A708D65; Fri, 13 Jan 2017 10:30:55 -0300 (CLST) Date: Fri, 13 Jan 2017 10:30:55 -0300 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix field order in struct catcache. Message-ID: <20170113133055.xgc4jvtwbszs2475@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20161104 (1.7.1) 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 Tom Lane wrote: > Fix field order in struct catcache. > > 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. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, 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