Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edQUt-0007xf-RW for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Jan 2018 01:02:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edQUt-00031L-7m for pgsql-bugs@arkaria.postgresql.org; Mon, 22 Jan 2018 01:02: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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1edQUs-00031C-UJ for pgsql-bugs@lists.postgresql.org; Mon, 22 Jan 2018 01:02:03 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1edQUk-0003oc-RA for pgsql-bugs@lists.postgresql.org; Mon, 22 Jan 2018 01:02:01 +0000 Received: by mail-pf0-x243.google.com with SMTP id y26so5811291pfi.10 for ; Sun, 21 Jan 2018 17:01:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=+j1pI1VZdTGn4fU4K+P1/7IaKoJQqj1mZeapAN9ZEmY=; b=Qu23EJPQVpgwBN3UUjG2wwIxVFNDq6RWdMSgWE0BRlMCcMBS+pc79oKSHYemApsSuy mnkahzVLm9M3lMZUPUu2lMxUqJUjuQT0YuAWMv9eYl70qvh/NXboaCjod11p/dc1zJbH 9+uUySEcfrHPytRi8B58VW7J7zOMpxZTQKUUcqXtqDBBXSDYZuv6PVJD9O5trEcdiyoA 8X9KAofrIE41trjIk6MhZqwfLZpR39wBWRZ7KPIjGuo3qWzCtJR54NDyFQ00lwYJpTyg eLpuGugr4li3a7cIaNKft2nFSCyXS8RAEKP3+ZAnLfLBF5hIjcpuG6lN/zHrgfuJRzrF ABqA== 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:references :mime-version:content-disposition:in-reply-to; bh=+j1pI1VZdTGn4fU4K+P1/7IaKoJQqj1mZeapAN9ZEmY=; b=IE/5smFic9q7+g1ZOE6HMx4qKzUI4SepTCIQbTjRg4+LSGD2c++LN++IXbp4fUo0OV GfPmdo4pEft6RF9ROxF63JXdq4/YgHpV4q81fPzNOwpQu9dOZH/OUwJXUd7gVZfbxrMf ssZeI932MW88WtZbW5IoDEATdGvMuRjXNPx0+e9eULuaG0KdgDoGs/GEBjBoavxwN+FV yTlUFvFMhjzOkZJ2ZJ+Abk1vtJNs0kre3ExVzDqTp87N8ydpVh/YF/HeWluSChQO9d1X kfOh2/pRKnvg8mUNc7SZnmT0yK+Q/5pNU9NB/RWq590JeDzvbbIFOLWpjs1vpYXT1dwi FHOg== X-Gm-Message-State: AKwxytf+lKaZsxxONEZcUexq12pH25iNJzrJB8vrAEzSORgOGHkGpZn+ ro2TZo4IaoDbwgMRhjBaH3k8+A== X-Google-Smtp-Source: AH8x227Ew4K52aM0UDEKYf8p4g5NM20PNH6s5iVX69wLxXhCIVufAgfRLSJB15538wKE9/XeZUsuqA== X-Received: by 10.99.175.3 with SMTP id w3mr5726177pge.328.1516582913056; Sun, 21 Jan 2018 17:01:53 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id r3sm10162886pgf.46.2018.01.21.17.01.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jan 2018 17:01:51 -0800 (PST) Date: Mon, 22 Jan 2018 10:01:47 +0900 From: Michael Paquier To: Tomas Vondra Cc: ktr@goldin-rudahl.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form Subject: Re: BUG #15023: problem with pg_statistic Message-ID: <20180122010147.GB22690@paquier.xyz> References: <20180121025924.3633.29967@wrigleys.postgresql.org> <95b5276d-2461-3312-bce0-670b0d29e3b0@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/WwmFnJnmDyWGHa4" Content-Disposition: inline In-Reply-To: <95b5276d-2461-3312-bce0-670b0d29e3b0@2ndquadrant.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --/WwmFnJnmDyWGHa4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 21, 2018 at 06:10:15PM +0100, Tomas Vondra wrote: > In any case, this seems like a case of data corruption, possibly due to > a bug (not sure which PostgreSQL version you're using) hardware failure > or misconfiguration (e.g. system not handling fsync correctly). Duplicated rows could be caused by the freeze-the-dead bug as well, which is not released yet (doesn't fix duplicated existing rows anyway). It may be possible to get rid of this problem by removing manually duplicated rows by tid matching. > If that's the case, I'd suspect there are other corrupted tables. That's likely possible, and impossible to say with this amount of information. In this case, what you should do first is stop your server, take a deep breath, and then read the following guidelines:=20 https://wiki.postgresql.org/wiki/Corruption -- Michael --/WwmFnJnmDyWGHa4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlplN/sACgkQnvQgOdby QH2vbBAAoYWJ8iBxXPsw2NR4afPt8eH6VmmoM7gsgHgAt5AsFfBF6kxaShsfUuhj i8aBi4Bqn9PgArpWzpR0s4COH9FkZz2WMXfmqlDqucqi/ChFv1Z8olNGbtn4rFXs /TqRLIaBg9KduKHRoOHwgK4NKrIu1H2v0uLxhaSz5LJEJdr+NWvqAYrRUgmc+cOu wBswU4nB8Qp6Uz8fPQ2nTB7igtH7T7z64mF7QQeWJKAETj3XURTGAnt8v4oqGAH8 Wd0kiZYY9QlscMtWrWpQnWjMoufPRZIQx9WtrO8IW+jBOmAMzZYZ4Rxpk8ua+1vC 4HhIcQ7fAnwO4/OzxUPCgtuQbqcZJVhP/l/ypTA0EdsqTtzz3FsszTAvTNuVQYyp PQwC3kcxvhDJjqIboT1hknTqzVfnnMM06yuU9d70M3hTXNSsxf3rMsvf7oR0pNQB D7WVTEcgOYDLHBw73o3pWGONeefV2/L0AqCXed5Tt4uFM8f/dmfMPOgW7JEWuGnl A9UsRNmW80ReCtG4ezFbrmE+410nswFC222iz7koW27sjjmhBWrvyH6VyUAqVKH5 nrJ65aoUADi62m34p0MT+ASmIYV9yEvwC4OMHfJGrfyav1HZY13agN6eqr2cEZaG 5lQZI2bNOLWh/kig7u4WZ7gioV4Wx/5OydfShL2fAtO65951LwE= =4V2O -----END PGP SIGNATURE----- --/WwmFnJnmDyWGHa4--