pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mauricio Alejandro De León Cárdenas <mauricio.deleonc@udem.edu>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Database creation taking too long
Date: Mon, 29 Jan 2018 13:35:10 -0500
Message-ID: <5888.1517250910@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPNTpTRG0DXFbEv4AZfPb9EpFLpgy1EnA2GvFa7zRW341o4aQA@mail.gmail.com>
References: <CAPNTpTS83dXYZk2Bur8PmUdW3yNBcSoPwD3tnPLVSW4oWWpskA@mail.gmail.com>
	<CAPNTpTS+rXir8Z+k6nLunFQTTitBdGz1bZL5WTt0qv7eXPPRgA@mail.gmail.com>
	<CAPNTpTT4zbTCokbTY1naUHEo--8H8z=iEJ3foP26BmXE2uAwPA@mail.gmail.com>
	<CAPNTpTRZ6LhJcp1nVCmDKimVAWFqCKBhknmAMqZ24qEqehOydw@mail.gmail.com>
	<CAPNTpTSEFPnp2C1fc3LGenB8Y43kD1Xrw1JTeU9LXNOv9RwGLw@mail.gmail.com>
	<CAPNTpTRG0DXFbEv4AZfPb9EpFLpgy1EnA2GvFa7zRW341o4aQA@mail.gmail.com>

=?UTF-8?Q?Mauricio_Alejandro_De_Le=C3=B3n_C=C3=A1rdenas?= <mauricio.deleonc@udem.edu> writes:
> Hi, im trying to create a new user within a rails app using the following
> command:
> createuser --createdb --login -P myapp

> It's been running for almost 1 hour but nothing happens (trying to run it
> 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




view thread (2+ messages)

Message-ID: <5888.1517250910@sss.pgh.pa.us>
Permalink:  ../5888.1517250910@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5888.1517250910@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mauricio.deleonc@udem.edu
  Subject: Re: Database creation taking too long
  In-Reply-To: <5888.1517250910@sss.pgh.pa.us>
  References: <CAPNTpTS83dXYZk2Bur8PmUdW3yNBcSoPwD3tnPLVSW4oWWpskA@mail.gmail.com> <CAPNTpTS+rXir8Z+k6nLunFQTTitBdGz1bZL5WTt0qv7eXPPRgA@mail.gmail.com> <CAPNTpTT4zbTCokbTY1naUHEo--8H8z=iEJ3foP26BmXE2uAwPA@mail.gmail.com> <CAPNTpTRZ6LhJcp1nVCmDKimVAWFqCKBhknmAMqZ24qEqehOydw@mail.gmail.com> <CAPNTpTSEFPnp2C1fc3LGenB8Y43kD1Xrw1JTeU9LXNOv9RwGLw@mail.gmail.com> <CAPNTpTRG0DXFbEv4AZfPb9EpFLpgy1EnA2GvFa7zRW341o4aQA@mail.gmail.com> <5888.1517250910@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox