Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhhg0-00068G-5e for pgsql-admin@arkaria.postgresql.org; Mon, 23 Jul 2018 20:43:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhhfy-0002Kl-5j for pgsql-admin@arkaria.postgresql.org; Mon, 23 Jul 2018 20:43:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhhfx-0002K9-O0 for pgsql-admin@lists.postgresql.org; Mon, 23 Jul 2018 20:43:25 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhhfv-0007Do-7r for pgsql-admin@lists.postgresql.org; Mon, 23 Jul 2018 20:43:24 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 4EDA021E33; Mon, 23 Jul 2018 16:43:22 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 23 Jul 2018 16:43:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=GYeK5s39SBPcWi4B/uVBHETf3uHuM 9o1cDX8NUfoG3Q=; b=jYbA5DdrywX3V1TGkrRRf2HsYlTc01TIJAuYSuFGrsuxD wArZ+jqgA4c2KULDN4iBDtzVqQIjwJSHoM/SbJXmb4ciE9oHE7ieXrG28dvh0MZk VNBMOsfI2nUjaKaw6G2UjiFNkVPAxfiC4W2rzcQkDZQzNu4WQszpdcLrWe7bOxNP GjphDlujpmxYabpqb8FoW+e6r1DxVCVRXSK/to9fs9dcA3dkeb8z4+00BFxoSosg AkoCYJQtim0slwGVedJdqoxJ+1qyOHZz14yXLyho6Md9M/a/kVBhWk4WdJOYWS+v Vb/YnpnVgK5EuorCdpNpyPEbhmLxGhuob9L/q8NOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=GYeK5s 39SBPcWi4B/uVBHETf3uHuM9o1cDX8NUfoG3Q=; b=cBw43M7Jfm8ghrmK9B7ehw 0DJsA0wzTl9XTfDpQF8jONdIBqhU8zyKNyXSZ0N1i7OZEjrKrzmn9UZlnjUDs62G /5QqlcDnEVZrjGNvBDDOJ9qeSSMkvGEXbswH5+XNdaHDZ+1gHLuB1PGYuJF0uEzB BzwGN9iZITgNz34SQ4nC13KhWMTFmoMa5JgtBsM4+d5toTLAmiG0/TzQ6MlEdCth OcLkkecF8r7vmtocdQevrawMJ58i4TsHbGq+xmTC9zfMX8bCjcdQeWFF0E2nWokm WUkQfOea+NmGTsgk4Ih88oMjWYcBKDG7rHlRluREGeKfr12w53nnm3UJUssicQjw == X-ME-Proxy: X-ME-Sender: Received: from [22.114.186.205] (unknown [172.58.94.173]) by mail.messagingengine.com (Postfix) with ESMTPA id A5DF5E435C; Mon, 23 Jul 2018 16:43:21 -0400 (EDT) Date: Mon, 23 Jul 2018 13:43:19 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <20180723203311.7isul7yxziiw7wbx@alvherre.pgsql> References: <20180723203311.7isul7yxziiw7wbx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: pg_authid has duplicated rows To: Alvaro Herrera CC: Mariel Cherkassky ,pgsql-admin@lists.postgresql.org From: Andres Freund Message-ID: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On July 23, 2018 1:33:11 PM PDT, Alvaro Herrera wrote: >On 2018-Jul-23, Andres Freund wrote: > >> Hi, >>=20 >> On 2018-07-23 21:03:32 +0300, Mariel Cherkassky wrote: >> > Today I faced a situation where I saw a postgresql 9=2E2 database >that had >> > duplicated rows in pg_autid=2E I saw 6 roles while 3 of them were >duplicated >> > (3 uniques rolenames in total)=2E I checked and the oid of the >duplicates >> > were the same oid as the originals=2E The solution was running vacuum >on the >> > table but I wanted to understand how this situation was created ? >Why even >> > with unique index on the rolname I saw duplicated values for >rolname ? >>=20 >> That suggests some form of corruption=2E Which version of 9=2E2 did thi= s >> occur on? Did you have any OS level crashes? Ran with fsync=3Doff? > >I have vague memories of seeing this recently=2E Can you please show=20 It's at least one of the potential effects of the out-of-date shared relca= che bug I recently fixed (but wasn't backpatched to 9=2E2, as it's unsuppor= ted)=2E Andres --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E