Okay, so it is an issue of null value then. Are null values being returned for all processes or only for specific ones?
It returns null for some of the processes, not for all.
Also can you please verify it by running "SELECT * FROM pg_sys_cpu_memory_by_process();" query in the query tool? Just want to ensure I'm not making mistakes while processing the queries output.