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 17:36:50 -0300
Message-ID: <20150504203650.GC2523@alvh.no-ip.org> (raw)
In-Reply-To: <CAEepm=2W9LyVy5ASPtH7cLnKsFnw5KGo3vRyteLXYhe=C+6ywQ@mail.gmail.com>
References: <20150406192130.2573.22545@wrigleys.postgresql.org>
<20150413210801.GR4369@alvh.no-ip.org>
<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Thomas Munro wrote:
> FWIW, in some future release, I think we should consider getting a
> bigger multixact member address space that wraps around at 2^48 or
> 2^64 instead of 2^32, so that we can sidestep the whole business and
> go back to having just xid and mxid wraparounds to worry about.
> pg_multixact/offsets would be 50% or 100% bigger (an extra byte or two
> per multixact), but it's not very big. pg_multiact/members would be
> no bigger for any workload that currently works without hitting the
> wraparound error, but could grow bigger if needed.
Not sure that enlarging the addressable area to 48/64 bits is feasible,
TBH. We already have many complaints that multixacts take too much disk
space; we don't want to make that 2^32 times worse, not even 2^16 times
worse. I don't understand why you say it'd become 1 byte bigger per
multixact; it would have to be 4 more bytes (2^64) or 2 more bytes
(2^48), no? If you have 150 million multixacts (the default freeze
table age) that would mean about 300 or 600 MB of additional disk space,
which is not insignificant: with the current system, in an database with
normal multixact usage of 4 members per multixact, members/ would use
about 2.8 GB, so 600 additional MB in offsets/ is large enough growth to
raise some more complaints.
(The 2^48 suggestion might be a tad more difficult to implement, note,
becase a lot of stuff relies on unsigned integer wraparound addition,
and I'm not sure we can have that with a 2^48 counter. Maybe we could
figure how to make it work, but is it worth the bother?)
--
Á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
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: <20150504203650.GC2523@alvh.no-ip.org>
References: <20150406192130.2573.22545@wrigleys.postgresql.org> <20150413210801.GR4369@alvh.no-ip.org> <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>
* 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