Re: The case against multixact GUCs

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: The case against multixact GUCs
Date: 2014-03-12 17:41:05
Message-ID: CA+TgmobOCuVA8=WSh8hPL3qOYxGr+ZFgyVffjN16W3VBK9tCFw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Mar 12, 2014 at 12:45 PM, Heikki Linnakangas
<hlinnakangas(at)vmware(dot)com> wrote:
> On 03/12/2014 06:26 PM, Robert Haas wrote:
>> On Tue, Mar 11, 2014 at 3:14 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
>>> In the 9.3.3 updates, we added three new GUCs to control multixact
>>> freezing. This was an unprecented move in my memory -- I can't recall
>>> ever adding a GUC to a minor release which wasn't backwards
>>> compatibility for a security fix. This was a mistake.
>>
>> I disagree. I think it was the right decision. I think it was a
>> mistake not including all of that stuff in the first place, and I
>> think it's good that we've now corrected that oversight.
>
> In hindsight, I think permanent multixids in their current form was a
> mistake. Before 9.3, the thing that made multixids special was that they
> could just be thrown away at a restart. They didn't need freezing. Now that
> they do, why not just use regular XIDs for them?

Well, the numbering of MXIDs is closely bound up with their storage
format. To do what you're proposing, we'd need to invent some new way
of associating an XID-used-as-MXID with update XID, list of lockers,
and lock modes. Which is certainly possible, but it's not obvious
that it's a good idea.

I *am* concerned that we didn't adequately weigh the costs of adding
another thing that has to be frozen before we did it. Clearly, the
feature has a lot of benefit, or will once we've flushed out most of
the bugs. But it's hard to say at this point how much the cost is
going to be, and I do think that's cause for concern. But I'm not
convinced that unifying the XID and MXID spaces would have addressed
that concern to any measurable degree.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2014-03-12 17:42:32 Re: GIN improvements part2: fast scan
Previous Message Tom Lane 2014-03-12 16:51:45 Re: pgstat wait timeout (RE: contrib/cache_scan)