pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Litao Wu <litaowu@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: insert waits for delete with trigger
Date: Mon, 9 Aug 2004 21:35:55 -0700 (PDT)
Message-ID: <20040810043555.38371.qmail@web13124.mail.yahoo.com> (raw)
In-Reply-To: <22223.1092097903@sss.pgh.pa.us>

Hi Tom, 

No row has granted='f'.
The result shown in the original email is from:
select c.relname, l.pid, l.mode, l.granted,
current_query
from pg_locks l, pg_class c, pg_stat_activity a
where relation is not null
  AND l.relation = c.oid
  AND l.pid = a.procpid
  AND l.mode != 'AccessShareLock'
order by l.pid;

After the above result, I went to OS
to get ps status.

Did I miss something?

Since the lock was granted to pid (18951), that
cause me confuse why OS ps shows it is waiting.

Also, I ntoiced that insert will be finished 
almost immediately after delete is done.

Thanks,


--- Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Litao Wu <litaowu@yahoo.com> writes:
> > Here is info from pg_lock:
> 
> All those locks are already granted, so they are not
> much help in
> understanding what PID 18951 is waiting for.  What
> row does it have
> with granted = 'f' ?
> 
> 			regards, tom lane
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: don't forget to increase your free space map
> settings
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail



view thread (6+ messages)  latest in thread

Message-ID: <20040810043555.38371.qmail@web13124.mail.yahoo.com>
Permalink:  ../20040810043555.38371.qmail@web13124.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040810043555.38371.qmail@web13124.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: litaowu@yahoo.com, tgl@sss.pgh.pa.us
  Subject: Re: insert waits for delete with trigger
  In-Reply-To: <20040810043555.38371.qmail@web13124.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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