File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,9 @@ pg_lock_status(PG_FUNCTION_ARGS)
269
269
break ;
270
270
case LOCKTAG_TRANSACTION :
271
271
values [6 ] =
272
- TransactionIdGetDatum (instance -> locktag .locktag_field1 );
272
+ TransactionIdGetDatum (
273
+ (TransactionId )instance -> locktag .locktag_field1 |
274
+ ((TransactionId )instance -> locktag .locktag_field2 << 32 ));
273
275
nulls [1 ] = true;
274
276
nulls [2 ] = true;
275
277
nulls [3 ] = true;
@@ -281,7 +283,8 @@ pg_lock_status(PG_FUNCTION_ARGS)
281
283
break ;
282
284
case LOCKTAG_VIRTUALTRANSACTION :
283
285
values [5 ] = VXIDGetDatum (instance -> locktag .locktag_field1 ,
284
- instance -> locktag .locktag_field2 );
286
+ (TransactionId )instance -> locktag .locktag_field2 |
287
+ ((TransactionId )instance -> locktag .locktag_field3 << 32 ));
285
288
nulls [1 ] = true;
286
289
nulls [2 ] = true;
287
290
nulls [3 ] = true;
You can’t perform that action at this time.
0 commit comments