pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Timothy Garnett <tgarnett@panjiva.com>
Cc: Postgres-Bugs <pgsql-bugs@postgresql.org>
Cc: Kevin Grittner <kgrittn@ymail.com>
Subject: Re: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated)
Date: Tue, 28 Apr 2015 14:54:14 -0300
Message-ID: <20150428175414.GC4369@alvh.no-ip.org> (raw)
In-Reply-To: <20150428145614.GA4369@alvh.no-ip.org>
References: <CA+TgmoaB90QizNNphGQ8_s0-OduVZiqbzM3994=nxiPF1Cm+tw@mail.gmail.com>
	<CA+TgmoY+kowO6FzVZ+-=BmkKz98du7bb4SedE-x-W0kLEgekCg@mail.gmail.com>
	<20150428145614.GA4369@alvh.no-ip.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro Herrera wrote:

> > I think this is confusing:
> > 
> > +/*
> > + * Read the offset of the first member of the given multixact.
> > + */
> > 
> > This is confusing to me because the two subdirectories of pg_multixact
> > are called "members" and "offsets".  Here you are talking about the
> > offset of the first member.  Maybe I'm just slow, but that seems like
> > conflating terminology.  You end up with a function called
> > read_offset_for_multi() that is actually looking up information about
> > members.  Ick.
> 
> Yeah, I introduced the confusing terminology while inventing multixacts
> initially and have regretted it many times.  I will think about a better
> name for this.  (Meanwhile, on IM Robert suggested
> find_start_of_first_multi_member)

Pushed.  I chose find_multixact_start() as a name for this function.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (113+ messages)  latest in thread

Message-ID: <20150428175414.GC4369@alvh.no-ip.org>
Permalink:  ../20150428175414.GC4369@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20150428175414.GC4369@alvh.no-ip.org

 · 

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-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, robertmhaas@gmail.com, thomas.munro@enterprisedb.com, tgarnett@panjiva.com, kgrittn@ymail.com
  Subject: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated)
  In-Reply-To: <20150428175414.GC4369@alvh.no-ip.org>
  References: <CA+TgmoaB90QizNNphGQ8_s0-OduVZiqbzM3994=nxiPF1Cm+tw@mail.gmail.com> <CA+TgmoY+kowO6FzVZ+-=BmkKz98du7bb4SedE-x-W0kLEgekCg@mail.gmail.com> <20150428145614.GA4369@alvh.no-ip.org> <20150428175414.GC4369@alvh.no-ip.org>

* 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