Commit a0e50e69 authored by Robert Haas's avatar Robert Haas

Include pid in pg_lock_status() results even for SIREAD locks.

Dan Ports
parent 8c250f37
......@@ -368,7 +368,10 @@ pg_lock_status(PG_FUNCTION_ARGS)
/* lock holder */
values[10] = VXIDGetDatum(xact->vxid.backendId,
xact->vxid.localTransactionId);
nulls[11] = true; /* pid */
if (xact->pid != 0)
values[11] = Int32GetDatum(xact->pid);
else
nulls[11] = true;
/*
* Lock mode. Currently all predicate locks are SIReadLocks, which are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment