From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
Cc: | Kevin Grittner <kgrittn(at)ymail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Timothy Garnett <tgarnett(at)panjiva(dot)com>, PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated) |
Date: | 2015-05-06 02:29:53 |
Message-ID: | CA+TgmoZkM=aJMwD6iFRi+xo3O73=RrY+oRRuPhpXTwPTU-TU8A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Tue, May 5, 2015 at 3:58 AM, Thomas Munro
<thomas(dot)munro(at)enterprisedb(dot)com> wrote:
> Here's a new patch, with responses to several reviews.
Going back to this version...
+ * Based on the assumption that there is no reasonable way for an end user to
+ * configure the thresholds for this, we define the safe member count to be
+ * half of the member address space, and the dangerous level to be
but:
+ const MultiXactOffset safe_member_count = MaxMultiXactOffset / 4;
Those don't match. Also, we usually use #define rather than const for
constants. I suggest we do that here, too.
+ int safe_multixact_age = MultiXactCheckMemberUsage();
+ if (safe_multixact_age >= 0)
Project style is to leave a blank line between these, I think.
I think you need to update the comments for relation_needs_vacanalyze().
The documentation in section 23.1.5.1, "Multixacts and Wraparound",
also needs updating.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Alex Dunn | 2015-05-06 04:07:33 | psqlodbc: HEAD fails to build with recent clang |
Previous Message | Robert Haas | 2015-05-06 02:08:41 | Re: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated) |