Received: from mx99.openu.ac.il (arbel.openu.ac.il [147.233.32.4]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA91181 for ; Tue, 25 May 1999 09:08:07 -0400 (EDT) (envelope-from herouth@oumail.openu.ac.il) Received: from talmon.openu.ac.il (talmon.openu.ac.il [147.233.32.11]) by mx99.openu.ac.il (Postfix) with ESMTP for id 3CA3D4B530; Tue, 25 May 1999 16:08:04 +0300 (IDT) Received: from [147.233.159.109] (mac-herouth.pc.openu.ac.il) by talmon.openu.ac.il (Netscape Messaging Server 3.54) with ESMTP id AAA328B; Tue, 25 May 1999 16:10:30 +0300 X-Sender: herouth@shaked.cc.openu.ac.il Message-Id: In-Reply-To: <374A8F02.6FEB685E@maaco.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 25 May 1999 16:08:31 +0300 To: Alex Turner , Postgres mailing list From: Herouth Maoz Subject: Re: [INTERFACES] Retreiving Table info 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