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

From Bruce Momjian
Subject Re: dropdb to a remote host
Date
Msg-id 200111132157.fADLvl518252@candle.pha.pa.us
Whole thread Raw
In response to dropdb to a remote host  (Alex Avriette <a_avriette@acs.org>)
Responses Re: dropdb to a remote host
List pgsql-general
> when I do:
>
> /usr/local/pgsql/bin/dropdb -h myhost -U myuser dbname
>
> it complains that there isnt an entry in pg_hba.conf for 'template1', when i
> rather explicitly told it to drop 'dbname'. am i missing something?

You need to connect to template1 to do the dbname drop.  My guess is
that pg_database has been truncated somehow.  You can actually connect
to any database and do the command "DROP DATABASE dbname".


--
  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: "Glen Parker"
Date:
Subject: CREATE DATABASE WITH LOCATION
Next
From: Tom Lane
Date:
Subject: Re: Behavior of nextval() and currval()