Re: [GENERAL] Problems with \dt - Mailing list pgsql-general

From Bruce Momjian
Subject Re: [GENERAL] Problems with \dt
Date
Msg-id 199807031933.PAA03795@candle.pha.pa.us
Whole thread Raw
In response to Problems with \dt  (wojtek <wojtek@itl.waw.pl>)
List pgsql-general
[Charset iso-8859-2 unsupported, filtering to ASCII...]
> Hello,
> I use postgreSQL 6.3. Have a look at this (after running psql):
>
> =====================================
> mydb=> vacuum;
> VACUUM
> mydb=> create table mytable (number int);
> CREATE
> mydb=> insert into mytable values(12);
> INSERT 18711 1
> mydb=> insert into mytable values(13);
> INSERT 18712 1
> mydb=> select * from mytable;
> number
> ------
>     12
>     13
> (2 rows)
>
> mydb=> \d mytable;
>
> Table    = mytable
> +--------------+----------+-------+
> | Field        | Type     | Length|
> +--------------+----------+-------+
> | number       | int4     | 4     |
> +--------------+----------+-------+
> mydb=> \dt
> Couldn't find any tables!
> mydb=>
> ===============================================
> (I made the above drawn table a little thiner to
>  make it easier to view)

Strange.  I recommend you pull the \dt query out of the psql.c source
file, and try it in psql to see what is failing.  Could be a problem
that you can't read pg_passwd, which you should be able to do.  \dt
needs to find the owner of the table to succeed.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-general by date:

Previous
From: wojtek
Date:
Subject: Problems with \dt
Next
From: lynch@lscorp.com (Richard Lynch)
Date:
Subject: Doing \copy after a file upload.