Re: Flush some statistics within running transactions - Mailing list pgsql-hackers

From Zsolt Parragi
Subject Re: Flush some statistics within running transactions
Date
Msg-id CAN4CZFOgx0steMN23afxauphppMzvBD3y7u8Oi6XV8Eg3D3m1Q@mail.gmail.com
Whole thread Raw
In response to Re: Flush some statistics within running transactions  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Flush some statistics within running transactions
List pgsql-hackers
Hello

  do { \
+ pgstat_report_mixed_anytime = true; \
  if (pgstat_should_count_relation(rel)) \
  (rel)->pgstat_info->counts.numscans++; \

Shouldn't these pgstat_report_mixed_anytime changes go inside the if
statement in all macros?

+/* Track if mixed anytime stats need to be flushed */
+
 /* Backend-local stats state */
 extern PGDLLIMPORT PgStat_LocalState pgStatLocal;

This seems to be a leftover comment



pgsql-hackers by date:

Previous
From: Bryan Green
Date:
Subject: Re: Make copyObject work in C++
Next
From: Tomas Vondra
Date:
Subject: Re: Non-deterministic buffer counts reported in execution with EXPLAIN ANALYZE BUFFERS