pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Smith <chris@interspire.com>
To: 'Chris Boget' <chris@wild.net>
To: 'Majolee InfoTech' <info@majolee.info>
To: 'Wim Paulussen' <wim@chen.be>
Cc: pgsql-php@postgresql.org
Subject: Re: get list of databases and tables in Postgres
Date: Tue, 2 Mar 2004 09:30:49 +1100
Message-ID: <000701c3ffdc$dfb169e0$0d00a8c0@chris> (raw)
In-Reply-To: <007801c3ff99$b29452d0$8c01a8c0@entropy>

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





view thread (7+ messages)  latest in thread

Message-ID: <000701c3ffdc$dfb169e0$0d00a8c0@chris>
Permalink:  ../000701c3ffdc$dfb169e0$0d00a8c0@chris/
Also on:    postgresql.org/message-id/000701c3ffdc$dfb169e0$0d00a8c0@chris

 · 

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-php@postgresql.org
  Cc: chris@interspire.com, chris@wild.net, info@majolee.info, wim@chen.be
  Subject: Re: get list of databases and tables in Postgres
  In-Reply-To: <000701c3ffdc$dfb169e0$0d00a8c0@chris>
  References: <007801c3ff99$b29452d0$8c01a8c0@entropy> <000701c3ffdc$dfb169e0$0d00a8c0@chris>

* 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