Re: get list of databases and tables in Postgres - Mailing list pgsql-php

From Chris Smith
Subject Re: get list of databases and tables in Postgres
Date
Msg-id 000701c3ffdc$dfb169e0$0d00a8c0@chris
Whole thread Raw
In response to Re: get list of databases and tables in Postgres  ("Chris Boget" <chris@wild.net>)
Responses Re: get list of databases and tables in Postgres
List pgsql-php
He wants to do it through PHP - so I don't think this will work.

You could always

psql -E -l

BUT - that query *could* change depending on the version of postgresql
you're running.

Chris.

-----Original Message-----
From: pgsql-php-owner@postgresql.org
[mailto:pgsql-php-owner@postgresql.org] On Behalf Of Chris Boget
Sent: Tuesday, March 02, 2004 1:29 AM
To: Majolee InfoTech; Wim Paulussen
Cc: pgsql-php@postgresql.org
Subject: Re: [PHP] get list of databases and tables in Postgres


> select datname from pg_database;

Or simply:

\d

unless I'm missing something...

Chris


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html



pgsql-php by date:

Previous
From: "Chris Smith"
Date:
Subject: Re: SQLSTATE in PHP?
Next
From: "scott.marlowe"
Date:
Subject: Re: get list of databases and tables in Postgres