dbTalk Databases Forums  

psql hangs after "drop table ..."

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss psql hangs after "drop table ..." in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kynn@panix.com
 
Posts: n/a

Default psql hangs after "drop table ..." - 02-19-2004 , 06:23 PM










I'm trying to drop an empty table (0 records) using:

testdb=> drop table empty_table;

but psql just hangs indefinitely after I hit return. No error
messages. (The table definitely exists; no other table refers to it.)

The only way out is to hit Ctrl-C; when I do this I get the message:

Cancel request sent
ERROR: Query was cancelled.
testdb=>

What's going on? What can I do to troubleshoot this problem?

Thanks!

kj

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: psql hangs after "drop table ..." - 02-19-2004 , 10:30 PM






<kynn (AT) panix (DOT) com> writes:
Quote:
I'm trying to drop an empty table (0 records) using:
testdb=> drop table empty_table;
but psql just hangs indefinitely after I hit return.
Sounds to me like there's another session that has an open transaction
with a lock on that table.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.