From: 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: Mon, 1 Mar 2004 17:11:06 +0530
Message-ID: <000c01c3ff82$1aa1d270$0100a8c0@MAJOLEE1> (raw)
References: <404317E9.2050004@chen.be>
Use:
select datname from pg_database;
===============
Mihir & Biren
Partners
Majolee InfoTech
===============
----- Original Message -----
From: "Wim Paulussen" <wim@chen.be>
To: <pgsql-php@postgresql.org>
Sent: Monday, March 01, 2004 4:30 PM
Subject: [PHP] get list of databases and tables in Postgres
> LS,
>
> Hope you can help : I am looking for equivalent sql statement for the
> following in MySQL :
> SHOW DATABASES
>
> I found out that for the tables you can connect to a Postgresql specific
> table information_schema.tables , but what is the corresponding table
> for the names of databases under Postgresql ?
>
> All help is highly appreciated.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
>
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: info@majolee.info, wim@chen.be
Subject: Re: get list of databases and tables in Postgres
In-Reply-To: <000c01c3ff82$1aa1d270$0100a8c0@MAJOLEE1>
References: <404317E9.2050004@chen.be> <000c01c3ff82$1aa1d270$0100a8c0@MAJOLEE1>
* 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