pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Alan Gutierrez <ajglist@izzy.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL list table names
Date: Wed, 8 Jan 2003 11:59:53 -0200 (GMT+2)
Message-ID: <Pine.LNX.4.44.0301081159400.13271-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <avgrfn$rju$1@news.hub.org>

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




view thread (4+ messages)

Message-ID: <Pine.LNX.4.44.0301081159400.13271-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0301081159400.13271-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0301081159400.13271-100000@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com, ajglist@izzy.net
  Subject: Re: SQL list table names
  In-Reply-To: <Pine.LNX.4.44.0301081159400.13271-100000@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox