Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yq1zN-0002Or-Nz for pgsql-bugs@arkaria.postgresql.org; Wed, 06 May 2015 16:16:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yq1zN-0004IN-7p for pgsql-bugs@arkaria.postgresql.org; Wed, 06 May 2015 16:16:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yq1zM-0004IH-29 for pgsql-bugs@postgresql.org; Wed, 06 May 2015 16:16:00 +0000 Received: from nm6-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.166]) by makus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Yq1zJ-0005g5-4Y for pgsql-bugs@postgresql.org; Wed, 06 May 2015 16:15:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1430928955; bh=6xaWawQdIDn9/yB6FPCBrutAX69QcivojJg+jzM6EuA=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=SwC8cGlFftjmgWhVxYeb9zOkJZfqy7hNwAG7Igo5rj2KuxZzUC4T6RccsDEZTzutjaxuRkPv8sx3StuGfcQufxoSbyWeKrUr2yXCpMwD1GaN9w/VI9ErFhbQHaR2BlvUDXUGPxwFUIBYOyxT9RlbnEgpjQTKsv0pHZHWdJSb0SlSbHGY5wzyNss9j3x3gupbwVnjQvm7uHk1TGw54HQdcKiuKio2V9CqyCfcvTInmQeLktaY50ujF7ineYUFhvjP3NH00yLCIrDoT8KsIHdUR1omD8GtFShreCTXAl6NI1ZknH2e/AAgH2gWXJ7/Hgmtq6dIC3uLa+hW6t/Xy9vP0Q== Received: from [98.138.226.176] by nm6.bullet.mail.ne1.yahoo.com with NNFMP; 06 May 2015 16:15:55 -0000 Received: from [98.138.89.198] by tm11.bullet.mail.ne1.yahoo.com with NNFMP; 06 May 2015 16:15:55 -0000 Received: from [127.0.0.1] by omp1056.mail.ne1.yahoo.com with NNFMP; 06 May 2015 16:15:55 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 280645.32051.bm@omp1056.mail.ne1.yahoo.com X-YMail-OSG: PxsF1vUVM1koRoh3UCHe.yT2YWDBZkPtj3CMNk2UfbtQQcZGBFt9RmVCP6n8H0G FpotPkWK4khl6mgNCTJ7a7iveei1wYpqS1FQ_JJ889qtAqerLTOfl9thVeNfmjzgQK0594s1at_S SkSovrcQDu4JNEaYdfZEIKHifLxy5favwWAfurwM4sgcW8Ri6Iyg5NShnU.kd_4OZQ2Es1paQOle cg5ilOEbYdlc4kUiHKS5jQcHXPlLnW6bwh8H4ab7wLwdhWiLxqppvjCXJeN.FjvGIYjjEqHEQTig 5r1_tYlH1BR.sPOoo0RrEP6ZkM_VwrAfTPEPdCqR928EPRzzBKT.ZjeH5P1ByDhv9dYFCoGIZXdw j9Ndg5.ZFwQXyPpW_gteHj9bhFLIXNbpL_qe6bS50NlVRVlf2Bf0BXmPesK2VDhuIDUAYPnomSP. KGkq4_5.55TlEHtG99.sQcsOrtB9kznnKDVfIeaKkBNkAAUKPxfnoNyfqJExENVFYoxh3_3rNDyr rPySgJJchQWm7gw-- Received: by 98.138.105.203; Wed, 06 May 2015 16:15:54 +0000 Date: Wed, 6 May 2015 16:15:54 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Alvaro Herrera , Robert Haas Cc: Thomas Munro , Amit Kapila , Timothy Garnett , PostgreSQL Bugs Message-ID: <1570859840.1241196.1430928954257.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <20150506143418.GT2523@alvh.no-ip.org> References: <20150506143418.GT2523@alvh.no-ip.org> Subject: Re: Re: BUG #12990: Missing pg_multixact/members files (appears to have wrapped, then truncated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 2210 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera wrote: > Robert Haas wrote: >> So here's a new patch, based on your latest version, which looks >> reasonably committable to me. > > I think this code should also reduce the multixact_freeze_min_age value > at the same time as multixact_freeze_table_age. If the table age is > reduced but freeze_min_age remains high, old multixacts might still > remain in the table. The default value for freeze min age is 5 million, > but users may change it. Perhaps freeze min age should be set to > Min(modified freeze table age, freeze min age) so that old multixacts > are effectively frozen whenever a full table scan requested. I would rather see min age reduced proportionally to table age, or at least ensure that min age is some percentage below table age. >> 1. Should we be installing one or more GUCs to control this behavior? >> I've gone back to hard-coding things so that at 25% we start >> triggering autovacuum and by 75% we zero out the freeze ages, because >> the logic you proposed in your last version looks insanely complicated >> to me. (I do realize that I suggested the approach, but that was >> before I realized the full complexity of the problem.) I now think >> that if we want to make this tunable, we need to create and expose >> GUCs for it. I'm hoping we can get by without that, but I'm not sure. > > I think things are complicated enough; I vote for no additional GUCs at > this point. +1 For one thing, we should try to have something we can back-patch, and new GUCs in a minor release seems like something to avoid, if possible. For another thing, we've tended not to put in GUCs if there is no reasonable way for a user to determine a good value, and that seems to be the case here. >> 2. Doesn't the code that sets MultiXactState->multiVacLimit also need >> to use what I'm now calling MultiXactMemberFreezeThreshold() - or some >> similar logic? Otherwise, a user with autovacuum=off won't get >> emergency autovacuums for member exhaustion, even though they will get >> them for offset exhaustion. > > Yeah, it looks like it does. +1 -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs