[BUGS] help me please

2008-04-23 Thread s...@mail.ru

Hello, help me please,
I don't know how, but i got 2 postgres users.
How can I delete the first one 
thx alot for your answers.
///
select passwd,ctid,xmin,xmax,cmin,cmax from pg_shadow where usesysid =1;
  passwd| ctid  | xmin |   xmax   |   
cmin   | cmax 
-+---+--+--+--+-  
-
| (0,1) |1 | 16754522 | 
16754522 |0
md510db8c04d26d32185270721fcf32155 | (0,2) |2 |0 |0 
|0

(2 rows)
//
select * from pg_shadow where usesysid=1;
usename  | usesysid | usecreatedb | usesuper | usecatupd 
|   
passwd  
| valuntil | useconfig
--+--+-+--+---+-  
+--+---
postgres |1 | t   | t| t 
|   
|  |
postgres |1 | t   | t| t | 
md510db8c04d231142d5  
270721fcf740ed5 | infinity |

(2 rows)


Tom Lane пишет:

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
  

I have two "postgres" user. How to delete the first one ???



Let's see the system columns (ctid,xmin,xmax,cmin,cmax) for those
two rows?

regards, tom lane


  



--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


Re: [BUGS] HELP pls

2008-04-24 Thread s...@mail.ru

how to dump it ???
pg_dump is not working :
pg_dump: query to obtain list of schemas failed: ERROR:  more than one 
row returned by a subquery used as an expression


Tom Lane пишет:

Alvaro Herrera <[EMAIL PROTECTED]> writes:
  

[EMAIL PROTECTED] wrote:


I don't know how, but i got 2 postgres users.
  


  

You've got transaction wraparound problems.  Start here:



Vacuuming isn't gonna help though.  The tuple at (0,2) has been frozen,
which means that vacuum has certainly been run on the table since the
update; so he's wrapped around so far that vacuum doesn't think it can
remove the (0,1) tuple.

I assume the OP is just trying to dump this database so he can upgrade
to something remotely modern.  It might work to change the second
tuple's usesysid to something else (eg, 2) so that pg_dump doesn't
see multiple rows matching other objects' owner fields.

regards, tom lane


  



--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs