Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] Retreiving Table info

From: Herouth Maoz <herouth(at)oumail(dot)openu(dot)ac(dot)il>
To: Alex Turner <aturner(at)maaco(dot)com>, Postgres mailing list <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] Retreiving Table info
Date: 1999-05-25 13:08:31
Message-ID: l03130301b3704fbb3160@[147.233.159.109] (view raw, whole thread or download thread mbox)
Thread:
Lists: pgsql-interfaces
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



In response to

Responses

pgsql-interfaces by date

Next:From: Alex TurnerDate: 1999-05-25 13:16:08
Subject: Re: [INTERFACES] Retreiving Table info
Previous:From: Alex TurnerDate: 1999-05-25 11:52:34
Subject: Retreiving Table info

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group