Re: [HACKERS] obtaining row locking information

2006-04-22 Thread Tatsuo Ishii
> Tatsuo Ishii wrote: > > > Tatsuo, are you planning to add this to CVS HEAD? > > > > Yes, I would like to add if there's no objection. > > I have heard no comment, and it looks useful, so please add it at your > convenience. Ok, done. -- Tatsuo Ishii SRA OSS, Inc. Japan > -

Re: [HACKERS] obtaining row locking information

2006-04-22 Thread Bruce Momjian
Tatsuo Ishii wrote: > > Tatsuo, are you planning to add this to CVS HEAD? > > Yes, I would like to add if there's no objection. I have heard no comment, and it looks useful, so please add it at your convenience. --- > -- >

Re: [HACKERS] obtaining row locking information

2006-04-22 Thread Tatsuo Ishii
> Tatsuo, are you planning to add this to CVS HEAD? Yes, I would like to add if there's no objection. -- Tatsuo Ishii SRA OSS, Inc. Japan > --- > > Tatsuo Ishii wrote: > > I have attached pgrowlocks tested under current. > >

Re: [HACKERS] obtaining row locking information

2006-04-22 Thread Bruce Momjian
Tatsuo, are you planning to add this to CVS HEAD? --- Tatsuo Ishii wrote: > I have attached pgrowlocks tested under current. > -- > Tatsuo Ishii > SRA OSS, Inc. Japan > > > Tatsuo, have you developed a new version of this f

Re: [HACKERS] obtaining row locking information

2006-03-21 Thread Tatsuo Ishii
I have attached pgrowlocks tested under current. -- Tatsuo Ishii SRA OSS, Inc. Japan > Tatsuo, have you developed a new version of this for 8.2? > > --- > > Tatsuo Ishii wrote: > > > Tatsuo Ishii <[EMAIL PROTECTED]> writes:

Re: [HACKERS] obtaining row locking information

2006-03-20 Thread Bruce Momjian
Tatsuo, have you developed a new version of this for 8.2? --- Tatsuo Ishii wrote: > > Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > > To accomplish this I need to add following function into > > > storage/ipc/procarray.c. Thi

Re: [HACKERS] obtaining row locking information

2005-08-19 Thread Tatsuo Ishii
> On Fri, Aug 19, 2005 at 09:19:24PM +0900, Tatsuo Ishii wrote: > > > Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > > > To accomplish this I need to add following function into > > > > storage/ipc/procarray.c. This is similar to BackendPidGetProc() except > > > > that it accepts xid as an argument.

Re: [HACKERS] obtaining row locking information

2005-08-19 Thread Alvaro Herrera
On Fri, Aug 19, 2005 at 09:19:24PM +0900, Tatsuo Ishii wrote: > > Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > > To accomplish this I need to add following function into > > > storage/ipc/procarray.c. This is similar to BackendPidGetProc() except > > > that it accepts xid as an argument. Any object

Re: [HACKERS] obtaining row locking information

2005-08-17 Thread Tatsuo Ishii
> Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > To accomplish this I need to add following function into > > storage/ipc/procarray.c. This is similar to BackendPidGetProc() except > > that it accepts xid as an argument. Any objection? > > > if (xid == 0) /* never match

Re: [HACKERS] obtaining row locking information

2005-08-15 Thread Tom Lane
Tatsuo Ishii <[EMAIL PROTECTED]> writes: > To accomplish this I need to add following function into > storage/ipc/procarray.c. This is similar to BackendPidGetProc() except > that it accepts xid as an argument. Any objection? > if (xid == 0) /* never match dummy PGP

Re: [HACKERS] obtaining row locking information

2005-08-15 Thread Tatsuo Ishii
> Should this functionality be moved into the backend? When? Since feature freeze for 8.1 has been already made, I think this should be into 8.2 or later if necessary. BTW, I have modified pgrowlocks so that it shows pids: test=# select * from pgrowlocks('t1'); locked_row | lock_type | locker

Re: [HACKERS] obtaining row locking information

2005-08-12 Thread Bruce Momjian
Should this functionality be moved into the backend? When? --- Tatsuo Ishii wrote: > > On Fri, Aug 12, 2005 at 02:08:29PM +0900, Tatsuo Ishii wrote: > > > > On Fri, Aug 12, 2005 at 12:27:25PM +0900, Tatsuo Ishii wrote: > >

Re: [HACKERS] obtaining row locking information

2005-08-12 Thread Tatsuo Ishii
> On Fri, Aug 12, 2005 at 02:08:29PM +0900, Tatsuo Ishii wrote: > > > On Fri, Aug 12, 2005 at 12:27:25PM +0900, Tatsuo Ishii wrote: > > > > > > > However even one of transactions, for example 647 commits, still it > > > > shows as if 647 is a member of muitixid 3. > > > > > > > > test=# select *

Re: [HACKERS] obtaining row locking information

2005-08-12 Thread Alvaro Herrera
On Fri, Aug 12, 2005 at 02:08:29PM +0900, Tatsuo Ishii wrote: > > On Fri, Aug 12, 2005 at 12:27:25PM +0900, Tatsuo Ishii wrote: > > > > > However even one of transactions, for example 647 commits, still it > > > shows as if 647 is a member of muitixid 3. > > > > > > test=# select * from pgrowlock

Re: [HACKERS] obtaining row locking information

2005-08-11 Thread Tatsuo Ishii
> On Fri, Aug 12, 2005 at 12:27:25PM +0900, Tatsuo Ishii wrote: > > > However even one of transactions, for example 647 commits, still it > > shows as if 647 is a member of muitixid 3. > > > > test=# select * from pgrowlocks('t1'); > > locked_row | lock_type | locker | multi | xids > > ---

Re: [HACKERS] obtaining row locking information

2005-08-11 Thread Alvaro Herrera
On Fri, Aug 12, 2005 at 12:27:25PM +0900, Tatsuo Ishii wrote: > However even one of transactions, for example 647 commits, still it > shows as if 647 is a member of muitixid 3. > > test=# select * from pgrowlocks('t1'); > locked_row | lock_type | locker | multi | xids > +--

Re: [HACKERS] obtaining row locking information

2005-08-11 Thread Tatsuo Ishii
> Hi, > > With a help from Bruce, I wrote a small function which returns row > locking information(see attached file if you are interested). Here is > a sample result: > > test=# select * from pgrowlocks('t1'); > locked_row | lock_type | locker | multi > +---++--

Re: [HACKERS] obtaining row locking information

2005-08-08 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > All in all, Tatsuo is right in that there's no way to know what tuples > are locked without scanning the whole table. Sure. I was just questioning how much one needs to know that. It seems to me that the only time you really care is when you are inves

Re: [HACKERS] obtaining row locking information

2005-08-08 Thread Alvaro Herrera
On Sun, Aug 07, 2005 at 09:46:08PM +0900, Tatsuo Ishii wrote: > With a help from Bruce, I wrote a small function which returns row > locking information(see attached file if you are interested). A quick note: it's easier to build tuples using heap_form_tuple instead of BuildTupleFromCStrings. --

Re: [HACKERS] obtaining row locking information

2005-08-08 Thread Alvaro Herrera
On Mon, Aug 08, 2005 at 10:26:12AM -0400, Tom Lane wrote: > Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > If I understand correctly, it seems the above method does show a > > locked row's TID which does not block someone else. That is a little > > bit different from what I expcted. > > Well, it *co

Re: [HACKERS] obtaining row locking information

2005-08-08 Thread Tatsuo Ishii
> Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > If I understand correctly, it seems the above method does show a > > locked row's TID which does not block someone else. That is a little > > bit different from what I expcted. > > Well, it *could* be blocking someone else. If there were more than on

Re: [HACKERS] obtaining row locking information

2005-08-08 Thread Tom Lane
Tatsuo Ishii <[EMAIL PROTECTED]> writes: > If I understand correctly, it seems the above method does show a > locked row's TID which does not block someone else. That is a little > bit different from what I expcted. Well, it *could* be blocking someone else. If there were more than one waiter for

Re: [HACKERS] obtaining row locking information

2005-08-08 Thread Tatsuo Ishii
> Tatsuo Ishii <[EMAIL PROTECTED]> writes: > > With a help from Bruce, I wrote a small function which returns row > > locking information(see attached file if you are interested). > > Scanning the whole table seems a bit slow :-( Yes, but I couldn't find any other way. > There is another possibi

Re: [HACKERS] obtaining row locking information

2005-08-07 Thread Tom Lane
Tatsuo Ishii <[EMAIL PROTECTED]> writes: > With a help from Bruce, I wrote a small function which returns row > locking information(see attached file if you are interested). Scanning the whole table seems a bit slow :-( There is another possibility: in CVS tip, anyone who is actually blocked on a