From: | Sean Davis <sdavis2(at)mail(dot)nih(dot)gov> |
---|---|
To: | Daniel Silverstone <dsilvers(at)digital-scurf(dot)org>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: table listing queries |
Date: | 2005-08-25 11:27:02 |
Message-ID: | BF332346.D26F%sdavis2@mail.nih.gov |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 8/25/05 7:13 AM, "Daniel Silverstone" <dsilvers(at)digital-scurf(dot)org> wrote:
> Hi,
>
> I know that questions like this have been asked in the past, but I can
> find no definitive answer to one particular part of my problem...
>
> Namely, in MySQL I can say: "SHOW TABLES FROM 'dbname'" to list tables
> in a database I'm not currently connected to.
>
> I can find no way of doing this in PgSQL.
>
> Is there a way, or is postgres not letting me list the tables until I
> have connected to the database for security reasons?
There are system catalogs which contain the information about tables.
http://www.postgresql.org/docs/8.0/interactive/catalogs.html
However, they are specific to each database. In other words, the storage of
database-specific information is all WITHIN the given database, so you need
to be physically accessing the given database to even see those tables (or
do the query).
Sean
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Susanto | 2005-08-25 11:44:00 | How this query! |
Previous Message | Daniel Silverstone | 2005-08-25 11:13:55 | table listing queries |