Re: Get list of tables in a database

From: SZUCS Gábor <surrano(at)mailbox(dot)hu>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Get list of tables in a database
Date: 2002-12-03 21:11:19
Message-ID: 00fd01c29b10$86d1e5c0$0a03a8c0@fejleszt2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

There is a relation called pg_class in PostgreSQL, but it contains not only
tables, but also contains views and probably more. Check it.

G.
--
while (!asleep()) sheep++;

---------------------------- cut here ------------------------------
----- Original Message -----
From: <Riyaz(at)umapinc(dot)com>
Sent: Tuesday, December 03, 2002 9:12 PM

> Hi,
>
> I am looking for a SQL query which will return me the names of all
> the tables in a database. I want to use this in my php page to generate a
> list of tables given the name of database.
>
> Thanks in advance,
> Riyaz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mihai Gheorghiu 2002-12-03 21:15:37 Migration again
Previous Message Felipe Schnack 2002-12-03 21:09:01 Re: Postgresql -- initial impressions and comments