mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
Include pid in pg_lock_status() results even for SIREAD locks.
Dan Ports
This commit is contained in:
parent
8c250f3741
commit
a0e50e698b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user