Re: shared-memory based stats collector

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: gkokolatos(at)protonmail(dot)com
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: shared-memory based stats collector
Date: 2021-01-21 03:03:48
Message-ID: 20210121.120348.195305077048770640.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Thu, 14 Jan 2021 15:14:25 +0900 (JST), Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> wrote in
> At Fri, 08 Jan 2021 10:24:34 +0900 (JST), Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> wrote in
> > At Mon, 21 Dec 2020 17:16:20 +0900 (JST), Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> wrote in
> > > - Conflicted with b3817f5f77. Rebased.
> >
> > Conflicted with 9877374bef. Rebased.
>
> bea449c635 conflicted with this (on a comment change). Rebased.

Commit 960869da08 (database statistics) conflicted with this. Rebased.

I'm concerned about the behavior that pgstat_update_connstats calls
GetCurrentTimestamp() every time stats update happens (with intervals
of 10s-60s in this patch). But I didn't change that design since that
happens with about 0.5s intervals in master and the rate is largely
reduced in this patch, to make this patch simpler.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

Attachment Content-Type Size
v47-0001-sequential-scan-for-dshash.patch text/x-patch 8.8 KB
v47-0002-Add-conditional-lock-feature-to-dshash.patch text/x-patch 6.2 KB
v47-0003-Make-archiver-process-an-auxiliary-process.patch text/x-patch 17.7 KB
v47-0004-Shared-memory-based-stats-collector.patch text/x-patch 306.4 KB
v47-0005-Doc-part-of-shared-memory-based-stats-collector.patch text/x-patch 20.7 KB
v47-0006-Remove-the-GUC-stats_temp_directory.patch text/x-patch 13.6 KB
v47-0007-Exclude-pg_stat-directory-from-base-backup.patch text/x-patch 1.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2021-01-21 03:12:56 Re: REINDEX backend filtering
Previous Message Bharath Rupireddy 2021-01-21 03:00:22 Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit