From: Jens Hartwig <jhartwig@debis.com>
To: bboett@erm1.u-strasbg.fr
Cc: pgsql-sql@postgresql.org
Subject: Re: removing a DB??
Date: Mon, 27 Nov 2000 12:34:38 +0100
Message-ID: <3A2246CE.E8560B97@debis.com> (raw)
References: <20001127124423.A26525@erm1.u-strasbg.fr>
Hello Bruno,
you get a list of all available databases by issuing a query on
"pg_database":
select * from pg_database;
What do you mean with "internal DB's"?
Regards, Jens
Bruno Boettcher schrieb:
>
> hello,
>
> i have a nice command to create a db 'createdb', but hows when you want
> to get rid of a DB?? searched for a removedb script....
> Took me some time to read through the
> man page, find out how the command actually works, look up the SQL
> commands and find out that there's also a DROP DATABASE SQL-command...
>
> And then looking up that there'S really a dropdb command....
>
> would be really nice if in the man page there was a short ref, telling
> me about related commands.....
>
> Then the question arouse, if i can create and destroy databases from
> SQL, building my install script, it would be nice to test for the
> presence of a DB and in case of inexistence, create it on the fly.
>
> For this it would be nice if i could have found for each possible command
> in psql the SQL counterpart, notably, how to list all available DB's
> through SQL.
>
> BTW shouldn't \l display also the internal DB's ? If it would i could
> have searched for the right table....
>
> --
> ciao bboett
> ==============================================================
> bboett@earthling.net
> http://inforezo.u-strasbg.fr/~bboetthttp://erm1.u-strasbg.fr/~bboett
> ===============================================================
> the total amount of intelligence on earth is constant.
> human population is growing....
--
Herzliche Grüße, Jens Hartwig
=============================================
Jens Hartwig
---------------------------------------------
debis Systemhaus GEI mbH
10875 Berlin
Tel. : +49 (0)30 2554-3282
Fax : +49 (0)30 2554-3187
Mobil : +49 (0)170 167-2648
E-Mail : jhartwig@debis.com
=============================================
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-sql@postgresql.org
Cc: jhartwig@debis.com, bboett@erm1.u-strasbg.fr
Subject: Re: removing a DB??
In-Reply-To: <3A2246CE.E8560B97@debis.com>
References: <20001127124423.A26525@erm1.u-strasbg.fr> <3A2246CE.E8560B97@debis.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