pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Mariel Cherkassky <mariel.cherkassky@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: pg_authid has duplicated rows
Date: Mon, 23 Jul 2018 13:26:45 -0700
Message-ID: <20180723202645.dv47gmkbqk5kbrfr@alap3.anarazel.de> (raw)
In-Reply-To: <CA+t6e1mVRqX_cN00Unk2zELX-ec4zTvtdJe0a0y5h0_UGpJKFQ@mail.gmail.com>
References: <CA+t6e1mVRqX_cN00Unk2zELX-ec4zTvtdJe0a0y5h0_UGpJKFQ@mail.gmail.com>

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




view thread (7+ messages)  latest in thread

Message-ID: <20180723202645.dv47gmkbqk5kbrfr@alap3.anarazel.de>
Permalink:  ../20180723202645.dv47gmkbqk5kbrfr@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180723202645.dv47gmkbqk5kbrfr@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andres@anarazel.de, mariel.cherkassky@gmail.com
  Subject: Re: pg_authid has duplicated rows
  In-Reply-To: <20180723202645.dv47gmkbqk5kbrfr@alap3.anarazel.de>
  References: <CA+t6e1mVRqX_cN00Unk2zELX-ec4zTvtdJe0a0y5h0_UGpJKFQ@mail.gmail.com> <20180723202645.dv47gmkbqk5kbrfr@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox