pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpsql \l problem
4+ messages / 2 participants
[nested] [flat]
* psql \l problem
@ 2001-10-09 21:03 Joe DeBrunner <jdebrunner@NO_SPAMyahoo.com>
0 siblings, 1 reply; 4+ messages in thread
From: Joe DeBrunner @ 2001-10-09 21:03 UTC (permalink / raw)
To: pgsql-admin
Hello,
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?
I'm running version 7.0.3-2 on RedHat 7. BTW - I'm working on upgrading to
7.1 but the rpm dependencies are killing me!
Thanks,
Joe
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: psql \l problem
@ 2001-10-12 19:50 Tom Lane <tgl@sss.pgh.pa.us>
parent: Joe DeBrunner <jdebrunner@NO_SPAMyahoo.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2001-10-12 19:50 UTC (permalink / raw)
To: pgsql-admin
"Joe DeBrunner" <jdebrunner@NO_SPAMyahoo.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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: psql \l problem
@ 2001-10-14 01:33 Joe DeBrunner <jdebrunner@NO_SPAMyahoo.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Joe DeBrunner @ 2001-10-14 01:33 UTC (permalink / raw)
To: 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@sss.pgh.pa.us> wrote in message
news:1218.1002916236@sss.pgh.pa.us...
> "Joe DeBrunner" <jdebrunner@NO_SPAMyahoo.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@postgresql.org
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: psql \l problem
@ 2001-10-15 21:07 Tom Lane <tgl@sss.pgh.pa.us>
parent: Joe DeBrunner <jdebrunner@NO_SPAMyahoo.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2001-10-15 21:07 UTC (permalink / raw)
To: pgsql-admin
"Joe DeBrunner" <jdebrunner@NO_SPAMyahoo.com> writes:
> 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?
select * from pg_database
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-10-15 21:07 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-09 21:03 psql \l problem Joe DeBrunner <jdebrunner@NO_SPAMyahoo.com>
2001-10-12 19:50 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-10-14 01:33 ` Joe DeBrunner <jdebrunner@NO_SPAMyahoo.com>
2001-10-15 21:07 ` Tom Lane <tgl@sss.pgh.pa.us>
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