@@ -546,7 +546,7 @@ pg_wait_sampling_get_current(PG_FUNCTION_ARGS)
546546else
547547nulls [2 ]= true;
548548
549- values [3 ]= Int64GetDatumFast (item -> queryId );
549+ values [3 ]= UInt64GetDatum (item -> queryId );
550550tuple = heap_form_tuple (funcctx -> tuple_desc ,values ,nulls );
551551
552552SRF_RETURN_NEXT (funcctx ,HeapTupleGetDatum (tuple ));
@@ -732,11 +732,11 @@ pg_wait_sampling_get_profile(PG_FUNCTION_ARGS)
732732nulls [2 ]= true;
733733
734734if (pgws_collector_hdr -> profileQueries )
735- values [3 ]= Int64GetDatumFast (item -> queryId );
735+ values [3 ]= UInt64GetDatum (item -> queryId );
736736else
737737values [3 ]= (Datum )0 ;
738738
739- values [4 ]= Int64GetDatumFast (item -> count );
739+ values [4 ]= UInt64GetDatum (item -> count );
740740
741741tuple = heap_form_tuple (funcctx -> tuple_desc ,values ,nulls );
742742
@@ -848,7 +848,7 @@ pg_wait_sampling_get_history(PG_FUNCTION_ARGS)
848848else
849849nulls [3 ]= true;
850850
851- values [4 ]= Int64GetDatumFast (item -> queryId );
851+ values [4 ]= UInt64GetDatum (item -> queryId );
852852tuple = heap_form_tuple (funcctx -> tuple_desc ,values ,nulls );
853853
854854history -> index ++ ;