Re: pgsql: pgstat: add pgstat_copy_relation_stats().

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: pgstat: add pgstat_copy_relation_stats().
Date: 2022-04-06 23:58:08
Message-ID: Yk4pEKutdCO7RVLY@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Wed, Apr 06, 2022 at 09:35:17PM +0000, Andres Freund wrote:
> pgstat: add pgstat_copy_relation_stats().
>
> Until now index_concurrently_swap() directly modified pgstat internal
> datastructures. That will break with the introduction of shared memory
> statistics and seems off architecturally.
>
> This is done separately from the - quite large - shared memory statistics
> patch to make review easier.

Thanks for this one. This new routine makes sense.
--
Michael

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-04-07 00:57:04 pgsql: pgstat: prepare APIs used by pgstatfuncs for shared memory stats
Previous Message Michael Paquier 2022-04-06 23:52:51 pgsql: Add option --config-file to pg_rewind