Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WUbvW-0003L0-48 for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Mar 2014 13:06:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WUbvV-0000LB-Kh for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Mar 2014 13:06:57 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WUbvT-0000L0-Tb for pgsql-hackers@postgresql.org; Mon, 31 Mar 2014 13:06:56 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WUbvR-0007lr-FA for pgsql-hackers@postgresql.org; Mon, 31 Mar 2014 13:06:55 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 874EC5F7B4; Mon, 31 Mar 2014 09:09:08 -0400 (EDT) Date: Mon, 31 Mar 2014 09:09:08 -0400 From: Stephen Frost To: Alvaro Herrera Cc: Andres Freund , pgsql-hackers@postgresql.org Subject: Re: MultiXactId error after upgrade to 9.3.4 Message-ID: <20140331130908.GO4582@tamriel.snowman.net> References: <20140330040029.GY4582@tamriel.snowman.net> <20140330141135.GA4582@tamriel.snowman.net> <20140330185349.GD4582@tamriel.snowman.net> <20140331115452.GT9567@eldon.alvh.no-ip.org> <20140331115713.GA18358@alap3.anarazel.de> <20140331121912.GU9567@eldon.alvh.no-ip.org> <20140331123030.GB18358@alap3.anarazel.de> <20140331130215.GV9567@eldon.alvh.no-ip.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PBFvsYHMgDsH56j5" Content-Disposition: inline In-Reply-To: <20140331130215.GV9567@eldon.alvh.no-ip.org> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.8.0-35-generic (x86_64) X-Uptime: 09:05:27 up 60 days, 15:04, 5 users, load average: 0.01, 0.04, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --PBFvsYHMgDsH56j5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > I guess I wasn't expecting that too-old values would last longer than a > full wraparound cycle. Maybe the right fix is just to have the second > check also conditional on allow_old. I don't believe this was a wraparound case. > Anyway, it's not clear to me why this database has a multixact value of > 6 million when the next multixact value is barely above one million. > Stephen said a wraparound here is not likely. I don't think the xmax value is a multixact at all- I think it's actually a regular xid, but everyone is expected to ignore it because XMAX_IS_INVALID, yet somehow the MULTIXACT bit was also set and the new code expects to be able to look at the xmax field even though it's marked as invalid.. I'm going through the upgrade process again from 9.2 and will get a stack trace. Thanks, Stephen --PBFvsYHMgDsH56j5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iQIcBAEBAgAGBQJTOWj0AAoJEO1sijiDR2RVdFMQAL63QlS/OkTi+HpgqFQ1/GEp OwkYaJrc8kd3JR0xgXAs6vZX3o7fjEP2WQR4fGxkp+PfXY/Co63xHjh0y0GDK/P1 f7/jUolkwL3i45m5k8wrd2MnuqRLCYsMPlgNpvDKd1LOPW89R1nYq7ndx/n5w+Eq sIyV0HAobyl9iVJLI6j+muS3O/4jLFTnX9iQiLJQHCz7nQ0gBG1lxUT9N0TQBTkh YGneEWw7YnR9FzIQ1vR4CI1BQn5jf/0ZQFZg48P/eNkVYwxT1GiUeVn8WvdzBz4V QZ4FQKzACglyU07sfYI7CFyoGTlWz4cOddGemYUOCXFtzgt3Dd1ohhq2dw8C+ZsY 7ETXNk/9f4GsWNmOpoUp71Xhs0C8lrr4hglhSAYS4eftdkRaHdX8SWKW48SzcSNH vrc9uJl1TiRFOtTBSzkK60+fFGSgqYUivaNegB0KQbV9EHvEx24Sud3QPmD1U8e6 CLBwDFG4pEbixbFHevJLNlm2RysBJ8+pLHk0uafRmuFoGl721qA3Ml5Qbl9TF3aO c9MEjh8MD79Aoq/81u+mMefh0S7Bq7SlNDVzmKnuFNLYlJY5HXOqwIIvraiciyI5 02z0fe6dFG+QeTAnCXNNQMg45sMPQhOWUDDu8gZ1Sg1du9CaseOvqU3JfVmxh+2q nblIRQghH4akGpF0gyFD =I2U6 -----END PGP SIGNATURE----- --PBFvsYHMgDsH56j5--