pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Gutierrez <ajglist@izzy.net>
To: pgsql-sql@postgresql.org
Subject: Re: SQL list table names
Date: Wed, 08 Jan 2003 03:34:17 -0600
Message-ID: <avgrfn$rju$1@news.hub.org> (raw)
In-Reply-To: <3E1AB00F.1040207@infophil.com>
References: <3E1AB00F.1040207@infophil.com>

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

Alan Gutierrez




view thread (4+ messages)  latest in thread

Message-ID: <avgrfn$rju$1@news.hub.org>
Permalink:  ../avgrfn$rju$1@news.hub.org/
Also on:    postgresql.org/message-id/avgrfn$rju$1@news.hub.org

 · 

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: ajglist@izzy.net
  Subject: Re: SQL list table names
  In-Reply-To: <avgrfn$rju$1@news.hub.org>

* 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