trivial patch: show SIREAD pids in pg_locks - Mailing list pgsql-hackers

From Dan Ports
Subject trivial patch: show SIREAD pids in pg_locks
Date
Msg-id 20110401170028.GK81592@csail.mit.edu
Whole thread Raw
Responses Re: trivial patch: show SIREAD pids in pg_locks  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: trivial patch: show SIREAD pids in pg_locks  (Jeff Davis <pgsql@j-davis.com>)
Re: trivial patch: show SIREAD pids in pg_locks  (Robert Haas <robertmhaas@gmail.com>)
List 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

pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Should psql support URI syntax?
Next
From: "Kevin Grittner"
Date:
Subject: Re: Should psql support URI syntax?