Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egEGy-0006IZ-9P for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jan 2018 18:35:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egEGw-0002HI-Uz for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jan 2018 18:35:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1egEGw-0002H5-Ot for pgsql-bugs@lists.postgresql.org; Mon, 29 Jan 2018 18:35:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1egEGt-0001KL-RK for pgsql-bugs@postgresql.org; Mon, 29 Jan 2018 18:35:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w0TIZAPo005889; Mon, 29 Jan 2018 13:35:10 -0500 From: Tom Lane To: =?UTF-8?Q?Mauricio_Alejandro_De_Le=C3=B3n_C=C3=A1rdenas?= cc: pgsql-bugs@postgresql.org Subject: Re: Database creation taking too long In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?Mauricio_Alejandro_De_Le=C3=B3n_C=C3=A1rdenas?= message dated "Mon, 29 Jan 2018 11:40:16 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5887.1517250910.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 29 Jan 2018 13:35:10 -0500 Message-ID: <5888.1517250910@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?UTF-8?Q?Mauricio_Alejandro_De_Le=3DC3=3DB3n_C=3DC3=3DA1rdenas?=3D writes: > Hi, im trying to create a new user within a rails app using the followin= g > command: > createuser --createdb --login -P myapp > It's been running for almost 1 hour but nothing happens (trying to run i= t > on windows 10 with git bash). Is this normal? Sounds like it's blocked on a lock, perhaps. Try opening another connection to the DB and snooping around in pg_locks to see what's blocking it. regards, tom lane