mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Revert "Display the time when the process started waiting for the lock, in pg_locks."
This reverts commit 3b733fcd04.
Per buildfarm members prion and rorqual.
This commit is contained in:
@@ -63,7 +63,7 @@ typedef struct
|
||||
} PG_Lock_Status;
|
||||
|
||||
/* Number of columns in pg_locks output */
|
||||
#define NUM_LOCK_STATUS_COLUMNS 16
|
||||
#define NUM_LOCK_STATUS_COLUMNS 15
|
||||
|
||||
/*
|
||||
* VXIDGetDatum - Construct a text representation of a VXID
|
||||
@@ -142,8 +142,6 @@ pg_lock_status(PG_FUNCTION_ARGS)
|
||||
BOOLOID, -1, 0);
|
||||
TupleDescInitEntry(tupdesc, (AttrNumber) 15, "fastpath",
|
||||
BOOLOID, -1, 0);
|
||||
TupleDescInitEntry(tupdesc, (AttrNumber) 16, "waitstart",
|
||||
TIMESTAMPTZOID, -1, 0);
|
||||
|
||||
funcctx->tuple_desc = BlessTupleDesc(tupdesc);
|
||||
|
||||
@@ -338,10 +336,6 @@ pg_lock_status(PG_FUNCTION_ARGS)
|
||||
values[12] = CStringGetTextDatum(GetLockmodeName(instance->locktag.locktag_lockmethodid, mode));
|
||||
values[13] = BoolGetDatum(granted);
|
||||
values[14] = BoolGetDatum(instance->fastpath);
|
||||
if (!granted && instance->waitStart != 0)
|
||||
values[15] = TimestampTzGetDatum(instance->waitStart);
|
||||
else
|
||||
nulls[15] = true;
|
||||
|
||||
tuple = heap_form_tuple(funcctx->tuple_desc, values, nulls);
|
||||
result = HeapTupleGetDatum(tuple);
|
||||
@@ -412,7 +406,6 @@ pg_lock_status(PG_FUNCTION_ARGS)
|
||||
values[12] = CStringGetTextDatum("SIReadLock");
|
||||
values[13] = BoolGetDatum(true);
|
||||
values[14] = BoolGetDatum(false);
|
||||
nulls[15] = true;
|
||||
|
||||
tuple = heap_form_tuple(funcctx->tuple_desc, values, nulls);
|
||||
result = HeapTupleGetDatum(tuple);
|
||||
|
||||
Reference in New Issue
Block a user