pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
dropping a large table is taking a very long time (about 2 hours so far)
3+ messages / 3 participants
[nested] [flat]

* dropping a large table is taking a very long time (about 2 hours so far)
@ 2012-09-24 21:10  Evan Walter <ewalter@decisionanalyst.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Evan Walter @ 2012-09-24 21:10 UTC (permalink / raw)
  To: pgsql-admin

There were probaby about 5 million records in the table.  I do not believe
there were any foreign keys to the table  The drop table has been going for
over 2 hours.  Is that normal?

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: dropping a large table is taking a very long time (about 2 hours so far)
@ 2012-09-24 21:15  Steve Crawford <scrawford@pinpointresearch.com>
  parent: Evan Walter <ewalter@decisionanalyst.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Steve Crawford @ 2012-09-24 21:15 UTC (permalink / raw)
  To: Evan Walter <ewalter@decisionanalyst.com>; +Cc: pgsql-admin

On 09/24/2012 02:10 PM, Evan Walter wrote:
> There were probaby about 5 million records in the table.  I do not 
> believe there were any foreign keys to the table The drop table has 
> been going for over 2 hours.  Is that normal?
I'd check for locks from other transactions preventing the drop. One 
possibility is a running backup.

Cheers,
Steve





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: dropping a large table is taking a very long time (about 2 hours so far)
@ 2012-09-24 21:33  Vibhor Kumar <vibhor.aim@gmail.com>
  parent: Evan Walter <ewalter@decisionanalyst.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Vibhor Kumar @ 2012-09-24 21:33 UTC (permalink / raw)
  To: Evan Walter <ewalter@decisionanalyst.com>; +Cc: pgsql-admin


On Sep 24, 2012, at 5:10 PM, Evan Walter <ewalter@decisionanalyst.com> wrote:

> There were probaby about 5 million records in the table.  I do not believe
> there were any foreign keys to the table  The drop table has been going for
> over 2 hours.  Is that normal?


Not to me. I would have checked if DROP command is in waiting state. Also looked at pg_locks for more information on locks.

Thanks & Regards,
Vibhor Kumar
Blogs:http://vibhork.blogspot.com
http://vibhorkumar.wordpress.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2012-09-24 21:33 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-09-24 21:10 dropping a large table is taking a very long time (about 2 hours so far) Evan Walter <ewalter@decisionanalyst.com>
2012-09-24 21:15 ` Steve Crawford <scrawford@pinpointresearch.com>
2012-09-24 21:33 ` Vibhor Kumar <vibhor.aim@gmail.com>

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