Re: Get the tables names? - Mailing list pgsql-sql

From Roberto Mello
Subject Re: Get the tables names?
Date
Msg-id 20010720122715.A5060@cc.usu.edu
Whole thread Raw
In response to Get the tables names?  ("Magnus Landahl" <magnus.landahl@datessa.se>)
Responses Re: Get the tables names?  (darcy@druid.net (D'Arcy J.M. Cain))
List pgsql-sql
On Thu, Jul 19, 2001 at 11:04:40AM +0200, Magnus Landahl wrote:
> Hi everybody!
> 
> Is it possible to get the names of all tables in the database with a sql
> query??

SELECT tablename FROM pg_tables WHERE tablename NOT LIKE '%pg_%';
The "NOT LIKE" part is to avoid getting the PostgreSQL internal tables
in the output.
-Roberto
-- 
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU -
http://www.brasileiro.net      http://www.sdl.usu.edu - Space Dynamics Lab, Developer    
 
*** TURN OFF YOUR SYSTEM NOW !!! ***


pgsql-sql by date:

Previous
From: Jeff Eckermann
Date:
Subject: RE: Records exactly the same.
Next
From: Dado Feigenblatt
Date:
Subject: PLpgSQL