Re: dropdb to a remote host - Mailing list pgsql-general

From Bruce Momjian
Subject Re: dropdb to a remote host
Date
Msg-id 200111132226.fADMQbN20544@candle.pha.pa.us
Whole thread Raw
In response to Re: dropdb to a remote host  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > ... You can actually connect
> > to any database and do the command "DROP DATABASE dbname".
>
> Any database *except* the one to be deleted.  dropdb defaults to using

Yes, of course.  :-)

> template1 to issue the DROP.  My bet is that Alex mistakenly thought
> it'd be a good idea to forbid connections to template1.

Oh, that's probably how this happened.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: dropdb to a remote host
Next
From: "Glen Parker"
Date:
Subject: Re: CREATE DATABASE WITH LOCATION