pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Herouth Maoz <herouth@oumail.openu.ac.il>
To: Alex Turner <aturner@maaco.com>
To: Postgres mailing list <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] Retreiving Table info
Date: Tue, 25 May 1999 16:08:31 +0300
Message-ID: <l03130301b3704fbb3160@[147.233.159.109]> (raw)
In-Reply-To: <374A8F02.6FEB685E@maaco.com>

At 14:52 +0300 on 25/05/1999, Alex Turner wrote:


>
> however.. is it possible to open a connection to the database and
> determine what tables are in the database already?

Of course. It's a query, just like any other query, but you select the data
from the system catalogs rather than your own tables. Take a look in the
documentation - the manpage for "catalogs".

The table you should query is probably pg_class.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma





view thread (3+ messages)  latest in thread

Message-ID: <l03130301b3704fbb3160@[147.233.159.109]>
Permalink:  ../l03130301b3704fbb3160@%5B147.233.159.109%5D/
Also on:    postgresql.org/message-id/l03130301b3704fbb3160@[147.233.159.109]

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-interfaces@postgresql.org
  Cc: herouth@oumail.openu.ac.il, aturner@maaco.com
  Subject: Re: [INTERFACES] Retreiving Table info
  In-Reply-To: <l03130301b3704fbb3160@[147.233.159.109]>
  References: <374A8F02.6FEB685E@maaco.com> <l03130301b3704fbb3160@[147.233.159.109]>

* 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