From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | James Hall <James(dot)Hall(at)RadioShack(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Postgres not finding tables |
Date: | 2000-11-03 17:29:11 |
Message-ID: | 7082.973272551@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
James Hall <James(dot)Hall(at)RadioShack(dot)com> writes:
> Recently I noticed that postgres gives the error:
> "Couldn't find any tables, sequences or indices!"
> whenever I tried '\d' or '\d*' on one of the machines. BUT the
> database DOES contain tables because I can execute
> 'select * from testtable;' and postgres will display the table info.
(checks 6.5 psql sources...) Back then, \d expanded to a query like
SELECT usename, relname, relkind, relhasrules
FROM pg_class, pg_user
WHERE usesysid = relowner AND (other conditions)
This will miss any tables for which there is no matching owner listed
in pg_user. I'm guessing that's your problem ... how you got into that
state I don't know, but look at table ownership.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Fernan Aguero | 2000-11-03 18:09:44 | how to change column type |
Previous Message | Igor Khanjine | 2000-11-03 17:25:58 | Re[2]: DateTime functions |