Re: pg_dumpall problem - duplicated users - Mailing list pgsql-admin

From Tom Lane
Subject Re: pg_dumpall problem - duplicated users
Date
Msg-id 5470.1125601888@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_dumpall problem - duplicated users  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pg_dumpall problem - duplicated users  (GRUbY <grubby@epf.pl>)
List pgsql-admin
Bartosz Nowak <grubby@go2.pl> writes:
> Tom Lane napisa�(a):
>> You could manually delete either row, probably better to zap the second
>> one:
>> delete from pg_shadow where ctid = '(1,25)';

> Heh... i wish it was that easy - i tried it already :] When i delete the
> 'second' postgres user (with passwd set) PG is acting like there is no
> postgres account at all:
> ...
> And i cannot modify row of 'first' postgres user (without passwd set)
> with or without 'second' present:
> mw=> delete from pg_shadow where ctid = '(0,1)' ;
> DELETE 0

Ugh.  That's looking more like you have a transaction ID wraparound
problem.  How long has it been since pg_shadow was last vacuumed?

You could try a "VACUUM FREEZE pg_shadow" and see if the rows act any
more normally after that.  (Better take a filesystem-level backup
first, so you can get out of it if that makes things worse.)

            regards, tom lane

pgsql-admin by date:

Previous
From: GRUbY
Date:
Subject: Re: pg_dumpall problem - duplicated users
Next
From: GRUbY
Date:
Subject: Re: pg_dumpall problem - duplicated users