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

From Sami Imseih
Subject Re: Flush some statistics within running transactions
Date
Msg-id CAA5RZ0uJvCH1U47+m8eCW_NHv+F8W484MBDLw_kc6AfLY74xTw@mail.gmail.com
Whole thread
In response to Re: Flush some statistics within running transactions  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
> > 2) The need for all the stats to call pgstat_schedule_anytime_update()
> > in strategical places.  This is less of a burden compared to 1), but
> > this leads to more complications in these code paths with the coding
> > requirements, especially for custom stats kinds.
>
> I think that's solved with Sami's proposal for variable stats kind (to flush or
> schedule when the session is idle).

Just a clarification. It is "to schedule a flush when the transaction
becomes idle"
PGSTAT_IDLE_INTERVAL already deals when the session is idle.

--
Sami Imseih
Amazon Web Services (AWS)



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Proposal: ANALYZE (MODIFIED_STATS) using autoanalyze thresholds
Next
From: Induja Sreekanthan
Date:
Subject: BUG: ReadStream look-ahead exhausts local buffers when effective_io_concurrency>=64