pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Fix field order in struct catcache.
Date: Fri, 13 Jan 2017 08:35:59 -0500
Message-ID: <32592.1484314559@sss.pgh.pa.us> (raw)
In-Reply-To: <20170113133055.xgc4jvtwbszs2475@alvherre.pgsql>
References: <20170113133055.xgc4jvtwbszs2475@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Alvaro Herrera <alvherre@2ndquadrant.com> 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



view thread (3+ messages)

Message-ID: <32592.1484314559@sss.pgh.pa.us>
Permalink:  ../32592.1484314559@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32592.1484314559@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Fix field order in struct catcache.
  In-Reply-To: <32592.1484314559@sss.pgh.pa.us>
  References: <20170113133055.xgc4jvtwbszs2475@alvherre.pgsql> <32592.1484314559@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox