Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy2p4-0005h3-HJ for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jun 2014 17:41:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wy2p3-0006AH-R2 for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jun 2014 17:41:57 +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 1Wy2p3-0006A6-7i for pgsql-bugs@postgresql.org; Fri, 20 Jun 2014 17:41:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wy2oz-0004gm-UR for pgsql-bugs@postgresql.org; Fri, 20 Jun 2014 17:41:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s5KHfglr008520; Fri, 20 Jun 2014 13:41:42 -0400 From: Tom Lane To: Alvaro Herrera cc: Bruce Momjian , Andres Freund , PostgreSQL Bugs Subject: Re: pg_upgrade < 9.3 -> >=9.3 misses a step around multixacts In-reply-to: <20140620173351.GV18688@eldon.alvh.no-ip.org> References: <20140619020633.GA20469@momjian.us> <20140619015205.GD3806@momjian.us> <20140619014034.GC3806@momjian.us> <20140619220425.GQ18688@eldon.alvh.no-ip.org> <20140619221240.GC27747@eldon.alvh.no-ip.org> <20140620171915.GC29143@momjian.us> <20140620173351.GV18688@eldon.alvh.no-ip.org> Comments: In-reply-to Alvaro Herrera message dated "Fri, 20 Jun 2014 13:33:52 -0400" Date: Fri, 20 Jun 2014 13:41:42 -0400 Message-ID: <8519.1403286102@sss.pgh.pa.us> 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 Alvaro Herrera writes: > Bruce Momjian wrote: >> Why would we want this if the system functions fine without those files >> being created? I don't think we want pg_resetxlog to be doing anything >> except changing pg_controldata. > I don't understand why you say the system functions fine. If you move > the multixactid with pg_resetxlog to a point which doesn't have the > necessary file and page, the system will not start. Only pg_upgrade > knows to create the file appropriately, but normal operation doesn't. Yeah. In my mind, at least, there's been a TODO for some time for pg_resetxlog to make sure that pg_clog and the other SLRU-like files get populated appropriately when you tell it to change those counters. You have to have a segment file at the right place or startup fails. I'm not sure why Alvaro chose to fix this only for pg_multixact, but fixing that case is better than not fixing anything. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs