Re: pg_authid has duplicated rows

From: Andres Freund <andres(at)anarazel(dot)de>
To: Mariel Cherkassky <mariel(dot)cherkassky(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: pg_authid has duplicated rows
Date: 2018-07-23 20:26:45
Message-ID: 20180723202645.dv47gmkbqk5kbrfr@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

On 2018-07-23 21:03:32 +0300, Mariel Cherkassky wrote:
> Today I faced a situation where I saw a postgresql 9.2 database that had
> duplicated rows in pg_autid. I saw 6 roles while 3 of them were duplicated
> (3 uniques rolenames in total). I checked and the oid of the duplicates
> were the same oid as the originals. 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 ?

That suggests some form of corruption. Which version of 9.2 did this
occur on? Did you have any OS level crashes? Ran with fsync=off?

Please note that 9.2 is not supported anymore.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alvaro Herrera 2018-07-23 20:33:11 Re: pg_authid has duplicated rows
Previous Message Mariel Cherkassky 2018-07-23 18:03:32 pg_authid has duplicated rows