Re: Create db fails using utility tool

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Create db fails using utility tool
Дата
Msg-id 56B43C75.5040009@aklaver.com
обсуждение исходный текст
Ответ на Re: Create db fails using utility tool  (Shashank Dutt Jha <shashank.dj@gmail.com>)
Список pgsql-sql
On 02/04/2016 08:15 PM, Shashank Dutt Jha wrote:
> pgAdmin tool.
>
> Yes running both on same machine.
>
> With explicit options, as suggested, it is able to create db.

Probably because this is on Windows. When you run createdb without -h it 
assumes you want to connect to a socket. On Windows that is not possible 
so Postgres substitutes localhost in for the socket. I am not exactly 
how that is done, but I suspect the manner in which is done is causing a 
Windows anti-virus or firewall program to block the connection. FYI, 
createdb is just a command line wrapper around the SQL command CREATE 
DATABASE:

http://www.postgresql.org/docs/9.5/interactive/sql-createdatabase.html

so you can do the same thing in psql or pgAdmin.


>
> Thanks for help
>
>
>
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Shashank Dutt Jha
Дата:
Сообщение: Re: Create db fails using utility tool
Следующее
От: "Venkatesan, Sekhar"
Дата:
Сообщение: Question on PostgreSQL DB behavior w.r.t JOIN and sort order.