pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Timothy Garnett <tgarnett@panjiva.com>
Cc: PostgreSQL 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: Mon, 4 May 2015 22:03:57 -0300
Message-ID: <20150505010357.GG2523@alvh.no-ip.org> (raw)
In-Reply-To: <CAEepm=307L=B2Jp1az7DGNwn6891hEqO9A6GDJ4-2xVDJH93qA@mail.gmail.com>
References: <20150420190435.GV4369@alvh.no-ip.org>
	<CAEepm=18YykSsu9sGiOR9WvACVHLfyBqx+YCKO3Vs+nA939FCQ@mail.gmail.com>
	<CAEepm=2AUwgy0dZMAXsQZPiRYAqW7x1k0kUbd5nZYUjCbthzQw@mail.gmail.com>
	<20150428062352.GW4368@alvh.no-ip.org>
	<CAEepm=0doaxbMLN8XRtptNGrO6_jYQM67dQhiXL0HDVBW8S+BQ@mail.gmail.com>
	<CAEepm=13WNtTQkhCbU9NoFXQ_HCA8QZmoZvS52g=LT1cuMwE2Q@mail.gmail.com>
	<CAA4eK1KswLU14DXmOQogjanD_0v83CznyG6R5rKx5brO=uk_VQ@mail.gmail.com>
	<CAEepm=2W9LyVy5ASPtH7cLnKsFnw5KGo3vRyteLXYhe=C+6ywQ@mail.gmail.com>
	<20150504203650.GC2523@alvh.no-ip.org>
	<CAEepm=307L=B2Jp1az7DGNwn6891hEqO9A6GDJ4-2xVDJH93qA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Thomas Munro wrote:

> I can't help thinking there must be a different way to do this that
> takes advantage of the fact that multixacts are often created by
> copying all the members of an existing multixact and adding one new
> one, so that there is a lot of duplication and churn (at least when
> you have a workload that generates bigger multixacts, due to the
> O(n^2) process of building them up xid by xid).

Yeah, Simon expressed the same thought to me some months ago, and I gave
it some think-time (but not at lot of it TBH).  I didn't see any way to
make it workable.

Normally, lockers go away reasonably quickly, so some of the original
members of the multixact are disappearing all the time.  Maybe one way
would be to re-use a multixact you have in your local cache, as long as
the only difference with the multixact you want is some locker
transaction(s) that have already ended.  Not sure how you would manage
the cache, though.

-- 
Á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: <20150505010357.GG2523@alvh.no-ip.org>
Permalink:  ../20150505010357.GG2523@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20150505010357.GG2523@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, thomas.munro@enterprisedb.com, amit.kapila16@gmail.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: <20150505010357.GG2523@alvh.no-ip.org>
  References: <20150420190435.GV4369@alvh.no-ip.org> <CAEepm=18YykSsu9sGiOR9WvACVHLfyBqx+YCKO3Vs+nA939FCQ@mail.gmail.com> <CAEepm=2AUwgy0dZMAXsQZPiRYAqW7x1k0kUbd5nZYUjCbthzQw@mail.gmail.com> <20150428062352.GW4368@alvh.no-ip.org> <CAEepm=0doaxbMLN8XRtptNGrO6_jYQM67dQhiXL0HDVBW8S+BQ@mail.gmail.com> <CAEepm=13WNtTQkhCbU9NoFXQ_HCA8QZmoZvS52g=LT1cuMwE2Q@mail.gmail.com> <CAA4eK1KswLU14DXmOQogjanD_0v83CznyG6R5rKx5brO=uk_VQ@mail.gmail.com> <CAEepm=2W9LyVy5ASPtH7cLnKsFnw5KGo3vRyteLXYhe=C+6ywQ@mail.gmail.com> <20150504203650.GC2523@alvh.no-ip.org> <CAEepm=307L=B2Jp1az7DGNwn6891hEqO9A6GDJ4-2xVDJH93qA@mail.gmail.com> <20150505010357.GG2523@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