Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > undefined relat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3392 of 3599
Post > Topic >>

undefined relations in pg_locks

by "Sabin Coanda" <sabin.coanda@[EMAIL PROTECTED] > Apr 7, 2008 at 11:56 AM

Hi there,

Sorry I repeat a problem which concerned me since two months, but I got no

answer. It's not clear for me whether it is trivial or without a solution.
I 
promisse not to repeat it in the future if I will give no answer this time

too.

So, I'm working with "PostgreSQL 8.2.3 on i686-redhat-linux-gnu, compiled
by 
GCC gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)";

I have a procedure where a dead-lock occurs, and I'm trying to find the 
tables involved in the lock.

A little description of how my procedure works maybe helps. So I have a
loop 
where I call a second procedure with exception trapping. At its turn, it 
calls a third procedure. I guess an exception may occur in the third 
procedure, where I use a tem****ary table. When an exception occurs, I
guess 
my tem****ary table table is not dropped, and this may lock the process
when 
another call try to create that tem****ary table again. Could be this 
scenario what there happens to me ?

Unfortunatelly, I don't find the related objects of the oids of "relation"

field. Also all the fields "classid" and "objid" are null.
May I suppose there were references to tem****ary tables?
However, how cand I get the related objects involved in this lock, by
other 
way than analyse deeply in the code ?

TIA,
Sabin
 




 3 Posts in Topic:
undefined relations in pg_locks
"Sabin Coanda"   2008-04-07 11:56:35 
Re: undefined relations in pg_locks
tgl@[EMAIL PROTECTED] (T  2008-04-07 10:03:33 
Re: undefined relations in pg_locks
"Sabin Coanda"   2008-04-09 10:06:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 12:44:57 CDT 2008.