From: | Mariel Cherkassky <mariel(dot)cherkassky(at)gmail(dot)com> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: pg_authid has duplicated rows |
Date: | 2018-07-24 09:26:34 |
Message-ID: | CA+t6e1=BngUk6xPzZX2-LcYRiFSGKYUfqkgX8PPdxtZNNJX7fg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi,
I checked it also in version 9.6, and in this version I can edit the
pg_authid table. I'm suppose to get an error that the table is a system
catalog or am I wrong ?
2018-07-23 23:43 GMT+03:00 Andres Freund <andres(at)anarazel(dot)de>:
>
>
> On July 23, 2018 1:33:11 PM PDT, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
> wrote:
> >On 2018-Jul-23, Andres Freund wrote:
> >
> >> 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?
> >
> >I have vague memories of seeing this recently. Can you please show
>
> It's at least one of the potential effects of the out-of-date shared
> relcache bug I recently fixed (but wasn't backpatched to 9.2, as it's
> unsupported).
>
> Andres
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2018-07-24 13:57:28 | Re: pg_authid has duplicated rows |
Previous Message | Sohel Tamboli | 2018-07-24 05:06:34 | Re: Upgrade postgresql from 9.1 to 9.6 |