Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YllFB-0005Y6-Me for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Apr 2015 21:34:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YllFA-0004hd-Ux for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Apr 2015 21:34:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YllF8-0004hQ-Vu for pgsql-bugs@postgresql.org; Fri, 24 Apr 2015 21:34:39 +0000 Received: from nm6-vm1.bullet.mail.ne1.yahoo.com ([98.138.91.71]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YllF0-00061u-HK for pgsql-bugs@postgresql.org; Fri, 24 Apr 2015 21:34:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1429911267; bh=rJkVnSerQ5TlmSFYPKjgLUbGiscbYP//cYvxzjUnCeM=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=dvYpCDkpeRT55OJo+yDB5mSezpB0EMpNYkuUzzDwaMpHdwjlH7ezpuRaU6h9qc6beHC9ezU0UShi5GyQthFp/d9ufj1LuUT5Tp8yB9B3OQIQB5oeEcUih7tocxabVmh9E9ZwrQPIUIcaJa6ZD0athFX/bThunU3ufCfee2um3DpH4w641OwQdvrQa1riSw3UeWDeQYwDC4yy7M+asIa3UjS5xHYIcpgC604FwnzDqJ+hOZNeZbObTFjWKMEybWYNp5irb0xtFKmKwzC1yhmMK6Q/MJzymlX6WxaUpjliX1/1zrMjqgyhUy6GQMk18XzF6CcZXul6F17f50dHQ/tp6A== Received: from [98.138.100.114] by nm6.bullet.mail.ne1.yahoo.com with NNFMP; 24 Apr 2015 21:34:27 -0000 Received: from [98.138.89.173] by tm105.bullet.mail.ne1.yahoo.com with NNFMP; 24 Apr 2015 21:34:27 -0000 Received: from [127.0.0.1] by omp1029.mail.ne1.yahoo.com with NNFMP; 24 Apr 2015 21:34:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 121722.6517.bm@omp1029.mail.ne1.yahoo.com X-YMail-OSG: J8YCeA8VM1kX00q94bJSPc0N3C6o9i3yW.Nl.w5GNVWhoNSlDyjCCz5Te9RtB4i 3jL65BUqKWdH2OzxEPP7r.DGpZ1WfzUl17NHMSOnV7Uz9N1PNkIl0nNeF9pAJpM5N0WWiTikBlWl Leh4pGJxEDM1EFZN1z9YOVr1Wkj.dgW1RSBim_KA7jIH9pUSXiWNSK0PmRcY6Cs7XqF3E5oeU3eK sAa44KN_bFOraV7JG1.sd3dgWkIcwAVGvVwDuIppEmo2AWXc8Kl3QvvLfo0ghOw7bFwYdqJwJk8a RcrX5gR61eTmIDGxB.UKBEn7uGu1Qbdp45vzVuqcwJvFhy6n0Ll2KtsH5ET1GqnlKj0cGhpi3Ebu DqJqio7xPKZTsNroQ1xYcI07hoKYUBzSmnaH8AItb9N4jPqQYEF_ekFl_d6xpXs2ywgSduQG12PT Lsxhv7Ad2H5d.rgyD2lshS4.X1Je5iwoWsKWqDb3JJCT9By0VpWGWZUIf3xnpNfVfuRsq_H2lYVV 28TW67R0Uf_W301pFKvyXtXpmXqmvcGf.tVIYRIQUagLwVwBXtlejfcJI Received: by 98.138.105.249; Fri, 24 Apr 2015 21:34:26 +0000 Date: Fri, 24 Apr 2015 21:34:25 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Robert Haas , "thomas.munro@enterprisedb.com" Cc: Alvaro Herrera , "tgarnett@panjiva.com" , "pgsql-bugs@postgresql.org" Message-ID: <1218399087.3939716.1429911265812.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: 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: 1920 X-Pg-Spam-Score: -2.2 (--) 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 Robert Haas wrote: > On Tue, Apr 21, 2015 at 5:16 PM, Kevin Grittner wrote: >> Alvaro Herrera wrote: >>> Here's a patch. I have tested locally and it closes the issue >>> for me. If those affected can confirm that it stops the file >>> removal from happening, I'd appreciate it. >> >> Based on initial testing, it seems to stop file removal from >> happening rather too well. Before applying the patch I ran a test >> test that generated files 0000 to 1185D in the members directory. >> Even setting vacuum_multixact_freeze_min_age and >> vacuum_multixact_freeze_table_age very low, none of the members >> files would go away with VACUUM (with and without FREEZE) followed >> by CHECKPOINT. After applying the patch and starting with a fresh >> initdb, with very low settings of the vacuum_multixact_* GUCs I get >> the new error almost immediately, while the only file in the >> members subdirectory is 0000 and it is 8kB in size. >> >> I think the calculations might be wrong, but I'm not sure what does >> make sense. > Can anyone else reproduce this? I think I see why I was seeing this and nobody else was -- I was testing the cleanup on an otherwise quiescent cluster. It seems that no amount of VACUUM and CHECKPOINT will clean up the members subdirectory in the absence of processes adding more members. But after performing the VACUUMs and CHECKPOINT if I start the test program to add more multi-transactions with lots of members, *then* the members subdirectory gets cleaned up. That seems confusing and a bit annoying, but is otherwise benign. I would put "allow VACUUM followed by CHECKPOINT to delete unneeded files from the members subdirectory" on the "nice to have" list, but would not want to delay a fix for the corruption issues for it. -- 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