mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Include pid in pg_lock_status() results even for SIREAD locks.
Dan Ports
This commit is contained in:
@ -368,7 +368,10 @@ pg_lock_status(PG_FUNCTION_ARGS)
|
|||||||
/* lock holder */
|
/* lock holder */
|
||||||
values[10] = VXIDGetDatum(xact->vxid.backendId,
|
values[10] = VXIDGetDatum(xact->vxid.backendId,
|
||||||
xact->vxid.localTransactionId);
|
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
|
* Lock mode. Currently all predicate locks are SIReadLocks, which are
|
||||||
|
Reference in New Issue
Block a user