Re: [GENERAL] Where is my database gone ?

From: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
To: Guillaume Rousse <Guillaume(dot)Rousse(at)univ-reunion(dot)fr>
Cc: pgsql-general(at)hub(dot)org
Subject: Re: [GENERAL] Where is my database gone ?
Date: 2000-01-10 11:16:42
Message-ID: 3879BF9A.BFB91A83@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Guillaume Rousse wrote:

> My database coraux isn't listed anymore when i use psql -l, altough i can still
> connect to it using psql coraux, but there isn't any tables listed by \dt.
> Files are still present in $PGDATA, with their content.
> What's the problem, and how can i recover it ?

Most likely cause is that either the user that created the database does not exist
anymore or your permissions got messed up somehow. I've seen similar behaviour
when the user does not exist. You can see who owns the tables by doing

select relname,relowner from pg_class;

Then do

select * from pg_user to figure out which user the relowner corresponds to. If the
user is missing, create a enw one with the required uid.

Adriaan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Boutin 2000-01-10 12:11:39 Intro/Win9X
Previous Message Moser Marco 2000-01-10 11:03:50 gen