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 CAN4CZFNT2E2UNHmYVwsYS-Hy6MNZgj0+bEL4pwHaMoRd-Qd5HQ@mail.gmail.com
Whole thread Raw
In response to Re: Flush some statistics within running transactions  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
Hello

@@ -264,6 +266,12 @@ typedef struct PgStat_KindInfo
  /* Flush behavior */
  PgStat_FlushBehavior flush_behavior;

+ /*
+ * For PGSTAT_FLUSH_MIXED kinds: callback to flush only some fields. If
+ * NULL for a MIXED kind, treated as PGSTAT_FLUSH_AT_TXN_BOUNDARY.
+ */
+ bool (*flush_anytime_cb) (PgStat_EntryRef *entry_ref, bool nowait);
+

The comment seems to use incorrect names, shouldn't be FLUSH_MIXED and
FLUSH_AT_TXN_BOUNDARY without PGSTAT_?



pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PATCH] Reserve protocol 3.1 explicitly in pqcomm.h
Next
From: Michael Paquier
Date:
Subject: Re: pg_stat_statements: Fix nested tracking for implicitly closed cursors