Re: psql \l problem

From: "Joe DeBrunner" <jdebrunner(at)NO_SPAMyahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: psql \l problem
Date: 2001-10-14 01:33:52
Message-ID: 9qdh7s$1khr$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom,

Thanks for the reply.

I checked the pg_shadow table and all of the users I have added are still
there. Can't tell if the usesysid for each of them has changed or not. Is
there any way to determine the database owners id as listed in pg_database?
I've tried using the postgres id and granting superuser to one of the ids
but still can't list anything on the other databases. Other than being able
to connect to them there is nothing to indicate they exist anywhere.

I have also used phpPgAdmin to try to find some trace of the databases. No
luck unless I manually type the database in the URL. Then it lists all of
the details. For example, if I use type in db_details.php?server=1&db=horde
I can see details of the database. It lists postgres as the owner, but
postgres can't see it in a normal psql session or in a normal phpPgAdmin
view. Also, it says the database has no tables.

Another example, I can "\c states" to connect to an unlisted database and
then "select * from statename" to list the contents of the table, but it
won't list the table using \dt or using phpPgAdmin.

Can't think of any reason the ids would have changed or been deleted and
then readded.

I just hand entered the missing databases into pg_database and can now see
the databases, but they don't have any tables. Very confusing!

Joe

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote in message
news:1218(dot)1002916236(at)sss(dot)pgh(dot)pa(dot)us(dot)(dot)(dot)
> "Joe DeBrunner" <jdebrunner(at)NO_SPAMyahoo(dot)com> writes:
> > For some reason I can no longer see all of the databases in Postgresql.
When
> > I am in psql and type \l I only see template1. I can \c to connect to
the
> > databases but they will not list. Same thing with tables. The tables are
> > there, but I cannot \dt to list them.
> > Any idea what might cause this?
>
> You probably deleted the pg_shadow entries for the other databases'
> owners.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Marc Spitzer 2001-10-14 05:50:28 Re: delete/vacuum not freeing disk space
Previous Message Peter Eisentraut 2001-10-13 19:22:50 Re: Intel C++ Compiler