Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WqOUp-00050X-TD for pgsql-bugs@arkaria.postgresql.org; Fri, 30 May 2014 15:13:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WqOUp-000065-9B for pgsql-bugs@arkaria.postgresql.org; Fri, 30 May 2014 15:13:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WqOUo-0008Uh-2N for pgsql-bugs@postgresql.org; Fri, 30 May 2014 15:13:26 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WqOUk-0005CW-PT for pgsql-bugs@postgresql.org; Fri, 30 May 2014 15:13:24 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 0ABFF500002; Fri, 30 May 2014 17:13:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC7282.dip0.t-ipconnect.de [93.220.114.130]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 71231500001; Fri, 30 May 2014 17:13:18 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id CBA45100F08; Fri, 30 May 2014 17:13:17 +0200 (CEST) Date: Fri, 30 May 2014 17:13:17 +0200 From: Andres Freund To: Bruce Momjian Cc: PostgreSQL Bugs , Alvaro Herrera Subject: Re: pg_upgrade < 9.3 -> >=9.3 misses a step around multixacts Message-ID: <20140530151317.GB1220@awork2.anarazel.de> References: <20140530121631.GE25431@alap3.anarazel.de> <20140530132916.GM28490@momjian.us> <20140530133244.GG25431@alap3.anarazel.de> <20140530150006.GP28490@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140530150006.GP28490@momjian.us> 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 On 2014-05-30 11:00:06 -0400, Bruce Momjian wrote: > On Fri, May 30, 2014 at 03:32:44PM +0200, Andres Freund wrote: > > On 2014-05-30 09:29:16 -0400, Bruce Momjian wrote: > > > This is a bug in 9.3 pg_upgrade as well? > > > > Yes. > > > > > Why has no one reported it before? > > > > My guess is that it wasn't attributed to pg_upgrade in the > > past. Typically the error will only occur a fair amount of time > > later. You'll just see vacuums randomly erroring out with slru.c errors > > about nonexistant files :(. > > But how much later? pg_upgrade is pretty popular now but I am just not > seeing the number of errors as I would expect: > > ERROR: could not access status of transaction 2072053907 > DETAIL: Could not open file "pg_multixact/offsets/7B81": No such file or directory. > I am not saying there is no bug, but from your analysis it would seem to > be 100% of pg_upgrade'ed clusters that use multi-xacts. It'd need to be clusters that used more multixacts than fit onto two slru offsets/ segments in < 9.2. Otherwise things will probably just continue to work because there's no hole. Also the new cluster needs to have used more than vacuum_multixact_freeze_min_age multis after the upgrade to make the problem visible. I think. > If so, it seems we would need to tell everyone to remove the 0000 files > if there are higher numbered ones with numbering gaps. The problem is that it's not actually that easy to define whether there's a gap - after a multixact id wraparound the 0000 file might exist again. So I'd rather not give a simple instruction that might delete critical data. > Is this something our next minor release should fix in the multi-xacts > code? I wondered whether we could detect that case and deal with it transparently, but haven't come up with something smart. Alvaro? 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