Re: tables are not listable by \dt

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rajarshi Guha <rguha(at)indiana(dot)edu>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: tables are not listable by \dt
Date: 2007-07-02 14:54:20
Message-ID: 11601.1183388060@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rajarshi Guha <rguha(at)indiana(dot)edu> writes:
> Hi, we recently upgraded our Postgres instllation from 7.4 to 8.2 by
> doing a dump and restore. Howveer after logging into the database (as
> a user that is not the superuser) and doing \dt I get the error:
> No relations found
> But when I do
> SELECT relname, relpages FROM pg_class ORDER BY relpages DESC;
> I get a list of the tables and their sizes.

\dt does joins to pg_roles and pg_namespace ... are those nonempty?
What have you got search_path set to?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mikko Partio 2007-07-02 14:55:15 Re: tables are not listable by \dt
Previous Message Michael Fuhr 2007-07-02 14:50:07 Re: tables are not listable by \dt