Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRZak-0008U3-Hi for pgsql-sql@arkaria.postgresql.org; Fri, 05 Feb 2016 06:10:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRZaj-0005FU-Gn for pgsql-sql@arkaria.postgresql.org; Fri, 05 Feb 2016 06:10:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aRZai-0005F8-Do for pgsql-sql@postgresql.org; Fri, 05 Feb 2016 06:10:00 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aRZaf-0004zW-JN for pgsql-sql@postgresql.org; Fri, 05 Feb 2016 06:09:58 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 70E1A20458 for ; Fri, 5 Feb 2016 01:09:56 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 05 Feb 2016 01:09:56 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=CU9gcmO0KYZfEc5ido6VbpSJI7M=; b=cuzZ3H kyEqEJcikH3rsdCwf2eHPpoicDzRyfP7K2cDMqq1GtlzzIG7jdN/8naA3IUEPtL6 JFmBkPTjzkchg7bvMk7+6Nm57XFlOXkHbFZwFu3oguTWqxcsHHYSZ3ZAkGP8+2i/ 1TTlpmGMwp4uHi/uh/sa8HxRPD7NtcgiO/3YA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=CU9gcmO0KYZfEc5 ido6VbpSJI7M=; b=nPsQ8X29znVHSpSaPD3IiXB5j4hPBdo9IFDawPw6K11NyxN DTPrv7XeZuBxlwHeWHKHDUX/ECF6lRdYgiFEt8fLa5uQuaGVN1IMLPfxAy1F9o7H TRynsRxSRdDLiN3XDAEwHx0sfnylt/Ku9cDGnqGrlMyL0z8b+pJ2dapLoP84= X-Sasl-enc: rM7TRE6WB+iHbBT66UBmaSQJ5y6lFAU+RnsVQ1QjHR7f 1454652596 Received: from [192.168.1.2] (174-21-70-246.tukw.qwest.net [174.21.70.246]) by mail.messagingengine.com (Postfix) with ESMTPA id D6131680109; Fri, 5 Feb 2016 01:09:55 -0500 (EST) Subject: Re: Create db fails using utility tool To: Shashank Dutt Jha References: <56B37EF8.7030904@aklaver.com> <649F207B-457F-4DC7-8770-CB5E7E467C4F@gmail.com> <56B392B1.3010608@aklaver.com> Cc: pgsql-sql@postgresql.org From: Adrian Klaver Message-ID: <56B43C75.5040009@aklaver.com> Date: Thu, 4 Feb 2016 22:08:53 -0800 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org 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 -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql