BUG #2333: dropdb ignores the database name argument - Mailing list pgsql-bugs

From kevin barnes
Subject BUG #2333: dropdb ignores the database name argument
Date
Msg-id 200603172053.k2HKrxA5008869@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #2333: dropdb ignores the database name argument  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: BUG #2333: dropdb ignores the database name argument  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      2333
Logged by:          kevin barnes
Email address:      vinbarnes@gmail.com
PostgreSQL version: 8.1
Operating system:   ubuntu 5.10
Description:        dropdb ignores the database name argument
Details:

In the 8.1 release on Unbuntu 5.10 there is an error with the dropdb command
in /usr/bin. The error manifests itself by not respecting the DBNAME
argument. It assumes that you want to connect to a database named 'postgres'
and ignores whatever argument you give it. The error returned is:

dropdb: database removal failed: ERROR:  database "postgres" does not exist

The error is actually correct, because I do not have a database named
postgres, but the command does not work correctly.

I downgraded through apt-get to 8.0 and dropdb works as expected. I believe
the version I was running was 8.1.3.

pgsql-bugs by date:

Previous
From: "William ZHANG"
Date:
Subject: Re: BUG #2332: commands ignored until end of transaction block
Next
From: Stephan Szabo
Date:
Subject: Re: BUG #2334: WHERE IN (SUBSELECT) fails when column is null