pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bartosz Nowak <grubby@go2.pl>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dumpall problem - duplicated users
Date: Thu, 01 Sep 2005 15:11:28 -0400
Message-ID: <5470.1125601888@sss.pgh.pa.us> (raw)
In-Reply-To: <431750D4.3050808@go2.pl>
References: <431739CD.1030906@go2.pl>
	<4997.1125599176@sss.pgh.pa.us>
	<431750D4.3050808@go2.pl>

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



view thread (10+ messages)  latest in thread

Message-ID: <5470.1125601888@sss.pgh.pa.us>
Permalink:  ../5470.1125601888@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5470.1125601888@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, grubby@go2.pl
  Subject: Re: pg_dumpall problem - duplicated users
  In-Reply-To: <5470.1125601888@sss.pgh.pa.us>
  References: <431739CD.1030906@go2.pl> <4997.1125599176@sss.pgh.pa.us> <431750D4.3050808@go2.pl> <5470.1125601888@sss.pgh.pa.us>

* 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