Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3F619476FF3 for ; Wed, 18 Dec 2002 17:37:20 -0500 (EST) Received: from barney.usu.edu (barney.usu.edu [129.123.1.89]) by postgresql.org (Postfix) with ESMTP id A9883476F1C for ; Wed, 18 Dec 2002 17:29:11 -0500 (EST) Received: from cc.usu.edu by cc.usu.edu (PMDF V5.2-32 #30472) id <01KQ6KLMZ2008YARR9@cc.usu.edu> for PGSQL-PHP@POSTGRESQL.ORG; Wed, 18 Dec 2002 15:29:03 MST Date: Wed, 18 Dec 2002 15:29:03 -0700 (MST) From: Mark Nelson Subject: getting table names To: PGSQL-PHP@POSTGRESQL.ORG Message-id: <01KQ6KLMZ9J68YARR9@cc.usu.edu> X-VMS-To: PGSQL-PHP@POSTGRESQL.ORG MIME-version: 1.0 Content-type: TEXT/PLAIN; CHARSET=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/45 X-Sequence-Number: 1720 Hi, I can't seem to find how to do this anywhere. I'm trying to query the db and have it return the name of each of the tables in the db. Something like \dt does in psql, but from PHP. Any ideas? /mark