Re: pg_multixact not getting truncated

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_multixact not getting truncated
Date: 2014-11-20 16:02:31
Message-ID: CA+TgmoYPPNQ-iMwdB7TuaSEg1qee53yXZp6N1znmtKM05tUkBg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Nov 19, 2014 at 4:16 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> On 11/19/2014 01:03 PM, Alvaro Herrera wrote:
>> Josh Berkus wrote:
>>> On 11/12/2014 06:57 PM, Alvaro Herrera wrote:
>>>>> How did template0 even get a MultiXact? That sounds like they're really abusing the template databases. :( (Do keep in mind that MXID 1 is a special value.)
>>>> No, it's normal -- template0 does not have a multixact in any tuple's
>>>> xmax, but datminxid is set to the value that is current when it is
>>>> frozen.
>>>
>>> So, to follow up on this: it seems to me that we shouldn't be requiring
>>> freezing for databases where allowconn=false. This seems like a TODO to
>>> me, even possibly a backpatchable bug fix.
>>
>> Why do we need this for pg_multixact but not for pg_clog?
>
> I think we want it for both.

So that we can have two ways to lose data?

Forbidding connections to a database doesn't prevent XID or MXID wraparound.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-11-20 16:05:32 Re: Doing better at HINTing an appropriate column within errorMissingColumn()
Previous Message Robert Haas 2014-11-20 16:00:01 Re: pg_background (and more parallelism infrastructure patches)