Re: dropdb weirdness

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: dropdb weirdness
Дата
Msg-id AANLkTikOXr9q5lkU4azn54gaD4J2lbstLctzdQGkehQO@mail.gmail.com
обсуждение исходный текст
Ответ на dropdb weirdness  (Geoffrey <lists@serioustechnology.com>)
Список pgsql-general
On Tue, Jun 29, 2010 at 4:04 PM, Geoffrey <lists@serioustechnology.com> wrote:
> So running the following command:
>
> dropdb -p 5443 swr
>
> I get:
>
> dropdb: could not connect to database postgres: FATAL:  database "postgres"
> does not exist
>
> Why is it not 'seeing' the database name I'm passing to it?  Why is it
> trying to drop a database named postgres??

It's not. It's trying to log into the postgres database to execute the
command.   Try logging into the database via psql you want to issue
the 'drop database' sql FROM (usually template1 / postgres) and do the
drop database yourself. You can't drop the database you are logged in
to.

merlin

В списке pgsql-general по дате отправления:

Предыдущее
От: Geoffrey
Дата:
Сообщение: dropdb weirdness
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: dropdb weirdness