pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Chris Smith <chris@interspire.com>
Cc: 'Chris Boget' <chris@wild.net>
Cc: 'Majolee InfoTech' <info@majolee.info>
Cc: 'Wim Paulussen' <wim@chen.be>
Cc: pgsql-php@postgresql.org
Subject: Re: get list of databases and tables in Postgres
Date: Mon, 1 Mar 2004 15:31:17 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0403011530580.1074-100000@css120.ihs.com> (raw)
In-Reply-To: <000701c3ffdc$dfb169e0$0d00a8c0@chris>

If you're running 7.4, look into the iformation_schema for such things.  
That likely won't change.

On Tue, 2 Mar 2004, Chris Smith wrote:

> 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
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 




view thread (7+ messages)

Message-ID: <Pine.LNX.4.33.0403011530580.1074-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0403011530580.1074-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0403011530580.1074-100000@css120.ihs.com

 · 

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: scott.marlowe@ihs.com, 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: <Pine.LNX.4.33.0403011530580.1074-100000@css120.ihs.com>
  References: <000701c3ffdc$dfb169e0$0d00a8c0@chris> <Pine.LNX.4.33.0403011530580.1074-100000@css120.ihs.com>

* 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