Re: all tables in a DB\?

From: "Rolf Hug" <rolfhug(at)bluewin(dot)ch>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: all tables in a DB\?
Date: 2002-02-18 20:28:15
Message-ID: a4ro0l$1641$1@jupiter.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi
Try the following SQL-Command:

SELECT relname
FROM pg_class
WHERE relname NOT LIKE 'pg_%';

In the table 'pg_class' you will find all tables created in the database.
Also the system-tables called pg_... (like pg_class).
greetings
rolf

"D'laila Pereira" <dlailap(at)home(dot)com> schrieb im Newsbeitrag
news:Xh2c8(dot)20270$tg4(dot)228609(at)vixen(dot)cso(dot)uiuc(dot)edu(dot)(dot)(dot)
> What SQL command can I issue in Postgresql to list all the tables in a
> database?
>
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Ruprecht 2002-02-18 20:59:22 Re: Why is my index not used
Previous Message Irv Shapiro 2002-02-18 19:02:10 Casting pairs of floating point variables as a point in plpgsql