From: Tom Lane <tgl@sss.pgh.pa.us>
To: bboett@erm1.u-strasbg.fr
Cc: pgsql-sql@postgresql.org
Subject: Re: no more pg_dump cause of multiple declared database??
Date: Wed, 09 May 2001 10:53:13 -0400
Message-ID: <20548.989419993@sss.pgh.pa.us> (raw)
In-Reply-To: <20010509091209.B16061@erm1.u-strasbg.fr>
References: <20010509091209.B16061@erm1.u-strasbg.fr>
bboett@erm1.u-strasbg.fr (Bruno Boettcher) writes:
> fibu=# \l
> List of databases
> Database | Owner | Encoding
> -----------+----------+-----------
> admin | www | SQL_ASCII
> fibu | bboett | SQL_ASCII
> fibu | hordemgr | SQL_ASCII
> horde | www | SQL_ASCII
> template0 | postgres | SQL_ASCII
> template1 | postgres | SQL_ASCII
> (6 rows)
> how can this be?
You have multiple users registered in pg_shadow with the same usesysid.
Alter the usesysid of the one you don't want to own that database.
(You will then have to find the objects he *should* own, and fix
their owner ID values...)
There should be a unique index on pg_shadow.usesysid, but due to an
old oversight there isn't. Fixing this is on the TODO list.
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, bboett@erm1.u-strasbg.fr
Subject: Re: no more pg_dump cause of multiple declared database??
In-Reply-To: <20548.989419993@sss.pgh.pa.us>
References: <20010509091209.B16061@erm1.u-strasbg.fr> <20548.989419993@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