@@ -546,7 +546,7 @@ pg_wait_sampling_get_current(PG_FUNCTION_ARGS)
546
546
else
547
547
nulls [2 ]= true;
548
548
549
- values [3 ]= Int64GetDatumFast (item -> queryId );
549
+ values [3 ]= UInt64GetDatum (item -> queryId );
550
550
tuple = heap_form_tuple (funcctx -> tuple_desc ,values ,nulls );
551
551
552
552
SRF_RETURN_NEXT (funcctx ,HeapTupleGetDatum (tuple ));
@@ -732,11 +732,11 @@ pg_wait_sampling_get_profile(PG_FUNCTION_ARGS)
732
732
nulls [2 ]= true;
733
733
734
734
if (pgws_collector_hdr -> profileQueries )
735
- values [3 ]= Int64GetDatumFast (item -> queryId );
735
+ values [3 ]= UInt64GetDatum (item -> queryId );
736
736
else
737
737
values [3 ]= (Datum )0 ;
738
738
739
- values [4 ]= Int64GetDatumFast (item -> count );
739
+ values [4 ]= UInt64GetDatum (item -> count );
740
740
741
741
tuple = heap_form_tuple (funcctx -> tuple_desc ,values ,nulls );
742
742
@@ -848,7 +848,7 @@ pg_wait_sampling_get_history(PG_FUNCTION_ARGS)
848
848
else
849
849
nulls [3 ]= true;
850
850
851
- values [4 ]= Int64GetDatumFast (item -> queryId );
851
+ values [4 ]= UInt64GetDatum (item -> queryId );
852
852
tuple = heap_form_tuple (funcctx -> tuple_desc ,values ,nulls );
853
853
854
854
history -> index ++ ;