Discussion:
dropping a large table is taking a very long time (about 2 hours so far)
(too old to reply)
Evan Walter
2012-09-24 21:10:17 UTC
Permalink
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?
Steve Crawford
2012-09-24 21:15:23 UTC
Permalink
Post by Evan Walter
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
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Vibhor Kumar
2012-09-24 21:33:52 UTC
Permalink
Post by Evan Walter
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
--
Sent via pgsql-admin mailing list (pgsql-***@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Loading...