Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wu5aB-0004AL-6l for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 19:50:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wu5aA-0001OQ-JQ for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 19:50:14 +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 1Wu5a9-0001NI-RW for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 19:50:13 +0000 Received: from smtprelay0009.b.hostedemail.com ([64.98.42.9] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wu5a4-0008Se-RP for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 19:50:12 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay04.b.hostedemail.com (Postfix) with ESMTP id 4C9E57B613; Mon, 9 Jun 2014 19:50:07 +0000 (UTC) X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Spam-Summary: 50, 0, 0, , d41d8cd98f00b204, alvherre@alvh.no-ip.org, :::, RULES_HIT:41:355:379:599:967:973:988:989:1028:1260:1277:1311:1312:1313:1314:1345:1359:1437:1515:1516:1518:1519:1534:1542:1593:1594:1595:1596:1711:1730:1747:1777:1792:2198:2199:2393:2525:2560:2563:2682:2685:2828:2859:2895:2901:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3865:3866:3867:3870:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4184:4321:4605:4659:5007:6119:6261:6996:6997:7903:8526:9025:9121:10004:10400:10848:11232:11256:11257:11473:11658:11914:12043:12296:12517:12519:12555:12740:13071:13255:13870:13894:13895:21060:21063, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:fn, MSBL:0, DNSBL:none, Custom_rules:0:0:0 X-HE-Tag: net27_3a7f660ecd209 X-Filterd-Recvd-Size: 3847 Received: from eldon.alvh.no-ip.org (pc-65-79-161-190.cm.vtr.net [190.161.79.65]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf05.b.hostedemail.com (Postfix) with ESMTPA; Mon, 9 Jun 2014 19:50:01 +0000 (UTC) Received: by eldon.alvh.no-ip.org (Postfix, from userid 1000) id 44F461FC9; Mon, 9 Jun 2014 15:50:00 -0400 (CLT) Date: Mon, 9 Jun 2014 15:49:59 -0400 From: Alvaro Herrera To: Serge Negodyuck Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8673: Could not open file "pg_multixact/members/xxxx" on slave during hot_standby Message-ID: <20140609194959.GB18688@eldon.alvh.no-ip.org> References: <20131209142525.GA1123@awork2.anarazel.de> <20131209150345.GB1123@awork2.anarazel.de> <20131209182701.GD9519@awork2.anarazel.de> <20140103014616.GB7035@eldon.alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) 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 Serge Negodyuck wrote: Hi, > /var/log/postgresql/postgresql.log: > > 2014-06-02 08:20:55 EEST 172.18.10.4 db PANIC: could not access status of > transaction 2080547 > 2014-06-02 08:20:55 EEST 172.18.10.4 db DETAIL: Could not open file > "pg_multixact/members/14078": No such file or directory. > 2014-06-02 08:20:55 EEST 172.18.10.4 db CONTEXT: SQL statement " UPDATE > ....." Pushed a fix for this. Thanks for the report. > 2014-06-02 08:22:30 EEST FATAL: could not access status of transaction > 2080547 > 2014-06-02 08:22:30 EEST DETAIL: Could not read from file > "pg_multixact/members/14078" at offset 24576: Success. > 2014-06-02 08:22:30 EEST CONTEXT: xlog redo create mxid 2080547 offset > 4294961608 nmembers 8684: 6193231 (keysh) 6193233 (fornokeyupd) 6193234 > (keysh) 6193235 (fornokeyupd) 6193236 (keysh) 6193237 (fornokeyupd) 6193238 > (keysh) 6193239 (fornokeyupd) 6193240 (keysh) 6193241 (fornokeyupd) 6193242 > (keysh) 6193243 (fornokeyupd) 6193244 (keysh) 6193245 (fornokeyupd) 6193246 > (keysh) 6193247 (fornokeyupd) 6193248 (keysh) 6193249 (fornokeyupd) 6193250 > (keysh) 6193251 (fornokeyupd) 6193252 (keysh) 6193253 (fornokeyupd) 6193254 > (keysh) 6193255 (fornokeyupd) 6193256 (keysh) 6193257 ....... I find this bit rather odd. Normally the system shouldn't create multixacts this large. I think we might be missing a trick here somewhere. I imagine inserting the last few items is slow, isn't it? > An ugly hack "cp pg_multixact/members/14077 pg_multixact/members/14078" > helped me to start master server in replica. > > > Then, did pg_basebackup to slave database. It does not help > 2014-06-02 09:58:49 EEST 172.18.10.17 db2 DETAIL: Could not open file > "pg_multixact/members/1112D": No such file or directory. > 2014-06-02 09:58:49 EEST 172.18.10.18 db2 DETAIL: Could not open file > "pg_multixact/members/11130": No such file or directory. > 2014-06-02 09:58:51 EEST 172.18.10.34 db2 DETAIL: Could not open file > "pg_multixact/members/11145": No such file or directory. > 2014-06-02 09:58:51 EEST 172.18.10.38 db2 DETAIL: Could not open file > "pg_multixact/members/13F76": No such file or directory This is strange also; if the files are present in master, how come they weren't copied to the replica? I think we need more info about this problem. -- Álvaro Herrera 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