Re: dropdb to a remote host

Поиск
Список
Период
Сортировка
Искать
От
Bruce Momjian
Тема
Re: dropdb to a remote host
Дата
Msg-id
200111132157.fADLvl518252@candle.pha.pa.us
Ответ на
dropdb to a remote host (Alex Avriette)
Список
Дерево обсуждения
Re: dropdb to a remote host Alex Avriette <a_avriette@acs.org>
Re: dropdb to a remote host Bruce Momjian <pgman@candle.pha.pa.us>
> 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 по дате отправления
От: Glen Parker
Дата:
Сообщение: CREATE DATABASE WITH LOCATION
От: Tom Lane
Дата:
FAQ