Re: Flush some statistics within running transactions

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: Sami Imseih <samimseih(at)gmail(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Flush some statistics within running transactions
Date: 2026-02-04 15:57:48
Message-ID: CAN4CZFOgx0steMN23afxauphppMzvBD3y7u8Oi6XV8Eg3D3m1Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2026-02-04 15:59:31 Re: Non-deterministic buffer counts reported in execution with EXPLAIN ANALYZE BUFFERS
Previous Message Bryan Green 2026-02-04 15:54:37 Re: Make copyObject work in C++