We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c250f3 commit a0e50e6Copy full SHA for a0e50e6
src/backend/utils/adt/lockfuncs.c
@@ -368,7 +368,10 @@ pg_lock_status(PG_FUNCTION_ARGS)
368
/* lock holder */
369
values[10] = VXIDGetDatum(xact->vxid.backendId,
370
xact->vxid.localTransactionId);
371
- nulls[11] = true; /* pid */
+ if (xact->pid != 0)
372
+ values[11] = Int32GetDatum(xact->pid);
373
+ else
374
+ nulls[11] = true;
375
376
/*
377
* Lock mode. Currently all predicate locks are SIReadLocks, which are
0 commit comments