dbTalk Databases Forums  

[BUGS] BUG #2710: Intermittent hangs on sequence generation

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2710: Intermittent hangs on sequence generation in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jason Palmer
 
Posts: n/a

Default [BUGS] BUG #2710: Intermittent hangs on sequence generation - 10-20-2006 , 07:12 PM







The following bug has been logged online:

Bug reference: 2710
Logged by: Jason Palmer
Email address: jpalmer (AT) dlife (DOT) com
PostgreSQL version: 8.1
Operating system: Redhat enterprise 4
Description: Intermittent hangs on sequence generation
Details:

We can't exactly pinpoint the cause for this so I submit the problem to the
postgres community. We are currently running Postgres 8.1. Postgres is our
main database engine and several of our applications connect to it including
our java stack (tomkat 5.0.28 running java 1.4.2 struts) and Ruby on Rails
(Rails 1.6 w/ ActiveRecord). What we experience is bizarre. We can always
create tables with no sequences. But occasionally the database will hang
when we attempt to create a table with a sequence or foreign key. We can
cancel the operation and when it "hangs" the database will still be able to
insert/update/delete/select records so it's not totally down. But we are
required to reboot the database before we can successfully run the query.
Again, this does not happen all the time, but we've found that it happens
quite a lot.

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

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

Default Re: [BUGS] BUG #2710: Intermittent hangs on sequence generation - 10-20-2006 , 10:54 PM






"Jason Palmer" <jpalmer (AT) dlife (DOT) com> writes:
Quote:
... What we experience is bizarre. We can always
create tables with no sequences. But occasionally the database will hang
when we attempt to create a table with a sequence or foreign key.
Yup, that's pretty bizarre. Is the backend consuming CPU (or I/O) in
this state, or is it just waiting? If the latter, it's presumably
blocked on some lock, and you need to find out what. First try looking
in pg_locks to see if it's blocked on a user-level lock. If you don't
see anything there, then it's blocked on some internal lock (LWLock or
spinlock) --- you'll need to attach to the backend process with gdb and
get a stack trace to get some clue what's up.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


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.