Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJfwq-00076l-UF for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Apr 2019 15:06:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJfwp-0007QU-8T for pgsql-hackers@arkaria.postgresql.org; Thu, 25 Apr 2019 15:06:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJfwo-0007N3-Vt for pgsql-hackers@lists.postgresql.org; Thu, 25 Apr 2019 15:06:03 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJfwl-0002Pa-KW for pgsql-hackers@lists.postgresql.org; Thu, 25 Apr 2019 15:06:02 +0000 Received: by mail-qt1-x842.google.com with SMTP id k38so472727qtk.2 for ; Thu, 25 Apr 2019 08:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=1zoLAR+mkcj3B233miVA3OPHxD1XkG84OzxYvCzyTAc=; b=y5HEKYuqdJ57SJ0N0K0+6/uGpBHc0RiD44lE749XFZ0VMuNZ6hmK/f4/Lj8Ml7B8FG NJ5qEGjSFUxvfET2hKJqmg05X/J8lDqLkM+VpQvU5h5NlsJu3aIn7vy1O7cHM6gL1bU1 4kCmSiwQTAjNdIOlJhxMnoKEBUBHKatrkeGijZzSxCqlGFFjIPREGl4oghIfxyMUDDVz 9sh7Jc1KYDosxailT6O9GNk6wbk7ZYDdz1SyW0Rj5XjiaNkJeCNzkz55D8W2eyCQOy2j 0TbPEfKqm/CqhIPg+cDZr1mwGoXSpzGEF/SJxzP4G5NMsJ/mBuiy6/SE7lbf2CkyKdQ0 UPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=1zoLAR+mkcj3B233miVA3OPHxD1XkG84OzxYvCzyTAc=; b=rmGNBFM0i20P3DqrhT5ZWmaJVnzD7Rl5YkXyPyRIFPknJns53Ef8bgBV2iLuRltcwC 5OhZvvFKAAfFWsf8X+oAdCLFC8urfBgT/EmWe6DFcPGthG4PGTSaormAqb+vkI+3FxpV p/9gGONzKG0MlKt96fO7eTIxthcxLsIXk5fGFPzmG7EHFp0OEkG//iOUlOJGipbW+GsM fdqjXDBofVk8pGEFr5SnjqL+hf+DiaxwlMqVWRI6wZLZlIdYdh9xNi5Y+i1BXfthNluv y3My7hLn1J31rFFZev8lWg03rLBWcDIbD/lYuu1Fnmjk6tru+R7NMMeBlLXs6RhwPL1V k3eA== X-Gm-Message-State: APjAAAWL6rsDhOZ7btsaCw5YKWxfaGz+EHeA8JO4ghJaIeL/Df0n/A5k rsnGYZ81tNigSwXXuPfZBgQ+BSYZeEJYhwS9IRCT+3P5aG05aP7PB8/fpl7LEpt1buPlvss9KUV cV1cI79eyyRpfHmr3MKiZDidsyAFIIcNurEv2Ige6VwQtV76AUFBJoRFaRfoIXHQyUwAvfQ10w4 W9ptTccdhpbrDgag== X-Google-Smtp-Source: APXvYqy5tHT5UCfFPaUGOESQjynPMKROOR8fpa3BJgLWXMhVxG6XhCxc6NdIW6jlYD32wXhuOe/OCQ== X-Received: by 2002:ac8:d84:: with SMTP id s4mr1193243qti.255.1556204757202; Thu, 25 Apr 2019 08:05:57 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id n6sm14076181qtb.40.2019.04.25.08.05.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 08:05:56 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 273321207D0; Thu, 25 Apr 2019 11:05:54 -0400 (-04) Date: Thu, 25 Apr 2019 11:05:54 -0400 From: Alvaro Herrera To: Michael Paquier Cc: Tom Lane , Postgres hackers Subject: Re: REINDEX INDEX results in a crash for an index of pg_class since 9.6 Message-ID: <20190425150554.GA555@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190425130916.GG8552@paquier.xyz> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-25, Michael Paquier wrote: > 2) Bisecting between the merge base points of REL9_4_STABLE/master and > REL9_5_STABLE/master, I am being pointed to the introduction of > replication origins: > commit: 5aa2350426c4fdb3d04568b65aadac397012bbcb > author: Andres Freund > date: Wed, 29 Apr 2015 19:30:53 +0200 > Introduce replication progress tracking infrastructure. > > In order to see the problem, also one needs to patch initdb.c so as > the final VACUUM FULL on pg_database is replaced by VACUUM as on > 9.6~. The root of the problem is actually surprising, but manually > testing on 5aa2350 commit and 5aa2350~1 the difference shows up as the > issue is easily reproducible here. Hmm ... I suspect the problem is even older, and that this commit made it possible to see as a side effect of changing the catalog contents (since it creates one more view and does a REVOKE, which becomes an update on pg_class.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services