Re: SQL list table names - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: SQL list table names
Date
Msg-id Pine.LNX.4.44.0301081159400.13271-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Re: SQL list table names  (Alan Gutierrez <ajglist@izzy.net>)
Responses Search and Replace  ("Randy D. McCracken" <rdm@srs.fs.usda.gov>)
List pgsql-sql
On Wed, 8 Jan 2003, Alan Gutierrez wrote:

> alviN wrote:
>  > is it possible to execute an sql query to be able to list the tables's
>  > names?  well, you can do it on psql using \dt. but im talking about the SQL
>  > statement, because i want to execute that query from a script.
>
> Oh, even *I* know the answer to this one! Run psql with the -E argument to see
> the SQL used to run \dt. Look at man psql for for info for just:
>
> psql -E template1

or
SELECT tablename from pg_tables where tablename NOT LIKE 'pg%';

>
> Alan Gutierrez
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-10-8981112
fax:    +30-10-8981877
email:  achill@matrix.gatewaynet.com       mantzios@softlab.ece.ntua.gr



pgsql-sql by date:

Previous
From: Alan Gutierrez
Date:
Subject: Re: SQL list table names
Next
From: "Tambet Matiisen"
Date:
Subject: full join in view