Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtMYZ-0005Li-Nj for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Dec 2013 19:13:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VtMYZ-0005Kc-4n for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Dec 2013 19:13:19 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtMYY-0005KR-20 for pgsql-bugs@postgresql.org; Wed, 18 Dec 2013 19:13:18 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtMYU-0000qO-NF for pgsql-bugs@postgresql.org; Wed, 18 Dec 2013 19:13:17 +0000 Received: from intern.anarazel.de (ip83-162-122-48.hotspotsvankpn.com [83.162.122.48]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id DDA014E8001; Wed, 18 Dec 2013 20:13:12 +0100 (CET) Date: Wed, 18 Dec 2013 20:13:12 +0100 From: Andres Freund To: Serge Negodyuck Cc: Alvaro Herrera , pgsql-bugs@postgresql.org Subject: Re: BUG #8673: Could not open file "pg_multixact/members/xxxx" on slave during hot_standby Message-ID: <20131218191312.GA26481@alap2.anarazel.de> References: <20131209142525.GA1123@awork2.anarazel.de> <20131209150345.GB1123@awork2.anarazel.de> <20131209182701.GD9519@awork2.anarazel.de> <20131209190031.GK6777@eldon.alvh.no-ip.org> <20131210010054.GE27840@awork2.anarazel.de> <20131210042520.GN6777@eldon.alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 Hi, On 2013-12-18 16:20:48 +0200, Serge Negodyuck wrote: > You guys were right. After a week this issue occured again on almost > all slave servers. Not surprising. > My question is are there any quick-and-dirty solution to disable > pg_multixact deletion? I understand it may lead to waste of space. Your problem isn't the deletion but that a) multixactid members wrapped around, partially overwriting old data b) some multixacts contain too old members (c.f. 9.3.2) > The only way out was to perform full backup/restore, which did not > succeed with teh same error (could not access status of transaction > xxxxxxx) > A very ugly hack was to copy pg_multixact/members/0000 -> > pg_multixact/members/[ABCDF]xxx, it helped to do full backup, but not > sure about consistency of data. That will likely cause corruption. I think your best bet is to hack GetMultiXactIdMembers to return -1 for old multixacts, on the theory that those rows would have been removed by VACUUM if they had a valid xmax. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs