Re: Enhancing Memory Context Statistics Reporting - Mailing list pgsql-hackers

From Rahila Syed
Subject Re: Enhancing Memory Context Statistics Reporting
Date
Msg-id CAH2L28uL=Vm9E4Uf=tkg2Ki7_uDuAXORHVyCA7K_L=PAQ2p4sA@mail.gmail.com
Whole thread Raw
In response to Re: Enhancing Memory Context Statistics Reporting  (torikoshia <torikoshia@oss.nttdata.com>)
List pgsql-hackers
Hi, 
 

   =# select  pg_get_process_memory_contexts(pg_backend_pid(), true, 1)
from pg_stat_activity ;

    pg_get_process_memory_contexts
   --------------------------------
   (0 rows)

   Time: 6026.291 ms (00:06.026)

Since v32 patch quickly returned the memory contexts as expected with
the same parameter specified, there seems to be some degradation. Could
you check it?

Thank you for reporting this failure. This issue was a regression caused by the absence of a
ConditionVariableSignal() call in the summary = true code path,
which happened due to recent code refactoring.

PFA the fix.

Thank you,
Rahila Syed

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: fix comment for MAX_SIMUL_LWLOCKS
Next
From: Nathan Bossart
Date:
Subject: Re: fix comment for MAX_SIMUL_LWLOCKS