Skip site navigation (1) Skip section navigation (2)

trivial patch: show SIREAD pids in pg_locks

From: Dan Ports <drkp(at)csail(dot)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org,Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Subject: trivial patch: show SIREAD pids in pg_locks
Date: 2011-04-01 17:00:28
Message-ID: 20110401170028.GK81592@csail.mit.edu (view raw or flat)
Thread:
Lists: pgsql-hackers
While looking into a SSI bug, I noticed that we don't actually display
the pid of the holding transaction, even though we have that
information available.

The attached patch fixes that.

One note is that it will show the pid of the backend that executed the
transaction, even if that transaction has already committed. I have no
particular opinion about whether it's more useful to do that or return
null, so went with the smallest change. (The pid is null for PREPARED
or summarized transactions).

Dan

-- 
Dan R. K. Ports              MIT CSAIL                http://drkp.net/

Attachment: patch-ssi-pid-in-pg_locks.diff
Description: text/x-diff (572 bytes)

Responses

pgsql-hackers by date

Next:From: Kevin GrittnerDate: 2011-04-01 17:04:21
Subject: Re: Should psql support URI syntax?
Previous:From: Joshua D. DrakeDate: 2011-04-01 16:43:47
Subject: Re: Should psql support URI syntax?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group